Loading ...
Sorry, an error occurred while loading the content.

Re: Error: signature Mismatch

Expand Messages
  • ravi_mohandas
    Hi Ricardo: Hope you have gotten past this. Verified your signature generation function. It looks OK. Regards, -Ravi
    Message 1 of 4 , Sep 26, 2009
    • 0 Attachment
      Hi Ricardo:

      Hope you have gotten past this.

      Verified your signature generation function. It looks
      OK.

      Regards,
      -Ravi



      --- In ydn-auth@yahoogroups.com, Ricardo Scattini <rscattini@...> wrote:
      >
      > Hi:
      >
      > I'm developing an app in PHP to import contacts from Yahoo API
      > throughout BBAuth.
      > I followed carefully all the steps to generate/make the
      > Signature.
      >
      > The user can login successfully and yahoo redirects to my
      > entrypoint with the token on the GET. When I want to "get credentials" yahoo response:
      > "Signature mismatch"...
      >
      > the timestamp is correctly. the secret and the
      > appid too.
      >
      >
      > [...]
      > private $authURL = "https://api.login.yahoo.com/WSLogin/V1/wspwtoken_login?appid=%s&ts=%d&token=%s&sig=%s";
      >
      > private $authSIG = "/WSLogin/V1/wspwtoken_login?appid=%s&token=%s&ts=%d";
      >
      > private function generateAuthURL($ts = '') {
      >     if($ts == '') $ts = $this->getTs();
      >     return sprintf($this->authURL,$this->appId,$ts,$this->token,$this->generateAuthSIG($ts));
      >   }
      >
      >   private function generateAuthSIG($ts) {
      >     $unhashed = sprintf($this->authSIG,$this->appId,$_GET['token'],$ts).$this->secret;
      >     $hash =
      > md5($unhashed);
      >     return $hash;
      >   }
      > [...]
      >
      > When I try to do (after the user login):
      >
      > header("Location: ".$this->generateAuthURL($_GET['ts'] );
      >
      >
      > Yahoo retrives a : "SIGNATURE MISMATCH"
      >
      > I don't know what to do!
      >
      > Tnks!
      >
      >
      > Yahoo! Cocina
      >
      > Registrate y cargá tu receta. Podés ganar premios.
      >
      > www.promorecetas.com
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.