I've read lots of posts on this issue but haven't found anything to solve my 
dilemma.

I'm using AuthSub secure session tokens. I'm using Perl LWP to make the HTTP 
requests.


First I call AuthSubSession to get a session token with this header:
Authorization: AuthSub token="1/SvA" data="GET 
https://www.google.com/accounts/AuthSubSessionToken 1298481940 70386269" 
sig="CJ8rpacfRnPLeg= " sigalg="rsa-sha1"


I verify this token with AuthSubTokenInfo with similiar header:
Authorization: AuthSub token="1/gLb" data="GET 
https://www.google.com/accounts/AuthSubTokenInfo 1298481941 912781302" 
sig="CJ8rpacfRnPLeg= " sigalg="rsa-sha1"

This happily reports back:
Target=my-website.edu
Secure=true
Scope=https://www.google.com/calendar/feeds


Then I try to use this session token to call the Google Calendar feed with a 
similar header:
Authorization: AuthSub token="1/gLb" data="GET 
https://www.google.com/calendar/feeds/default/allcalendars/full 1298481943 
791622073" sig="CJ8rpacfRnPLeg" sigalg="rsa-sha1"


That's when I get the dreaded 401 Unknown authorization header returned. 
Google's response has some suspect headers as well:
WWW-Authenticate: GoogleLogin 
realm="https://www.google.com/accounts/ClientLogin";, service="cl"
Client-SSL-Warning: Peer certificate not verified
Client-Warning: Unsupported authentication scheme 'googlelogin'


Maybe I'm reading this wrong, but is it trying to use GoogleLogin for auth 
instead of AuthSub? I've read a lot posts saying Google Calendar supports 
secure AuthSub tokens. If I can call AuthSubSession and AuthSubTokenInfo 
with my secure tokens, it seems to me my private key and digital signatures 
must be working in general, just not for Google Calendar.

Thanks for any help on this,
-Jason





-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data 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://code.google.com/apis/calendar/community/forum.html

Reply via email to