Hi,

I assume that '/path/to/my/key.pem' instead points at your actual pem
file? Can you verify that it is actually the correct private key that
corresponds to the public key you uploaded when you registered your
domain for secure AuthSub? I would assume that it has to be the token
signing that is failing.

Cheers,
-Jeff

On Dec 8, 2:36 am, TonyDong <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I had a look at the example and tried to follow it.
> I do try to set the session token after the call, but the issue is  
> when I call:
>
> Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET['token'], $client);
>
> it gives me an exception: "Invalid AuthSub token. Error 403"
>
> any ideas why that might be?
>
> thanks,
> Tony.
>
> On 05/12/2008, at 6:29 PM, Jeff Fisher (Google) wrote:
>
>
>
> > Hmm looking at our tips blog:
>
> >http://gdatatips.blogspot.com/2008/09/secure-authsub-using-zend-php-l...
>
> > It doesn't look like you are actually saving the session token that
> > comes back from Zend_Gdata_AuthSub::getAuthSubSessionToken and setting
> > it on the client?
>
> > Cheers,
> > -Jeff
>
> > On Dec 5, 2:45 am, neverlosty <[EMAIL PROTECTED]> wrote:
> >> Hi,
>
> >> I'm having a little trouble connecting securely to google API.
>
> >> I am using the Zend libs 1.62, AuthSub and I have uploaded my public
> >> certificate to manage domains.
>
> >> When I use secure=1 everything seems fine where the user accept/deny
> >> (no yellow bar, no warning message)
>
> >> However, when they come back with the token and I call:
> >> $client = new Zend_Gdata_HttpClient();
> >> $client->setAuthSubPrivateKeyFile('/path/to/my/key.pem', null, true);
> >> Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET['token'], $client);
>
> >> I simply get a 403 (Invalid token) exception
>
> >> Does anyone know what I'm doing wrong, or any examples of how this
> >> works?
>
> >> thanks and regards,
> >> Tony.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to