Hi walterc,

Calling AuthSubUtil.getRequestUrl("http://localhost:8080/test/
test.action", "http://www.google.com/calendar/feeds/default/";, false,
false) will yield the following URL:
https://www.google.com/accounts/AuthSubRequest?next=http%3A%2F%2Flocalhost%3A8080%2Ftest%2Ftest.action&scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2Fdefault%2F&secure=0&session=0

Note the last parameter was 'false' and the URL ends with
'session=0'.  Attempting to upgrade this token will yield the error
meesage you're receiving.

Note sure if this is your problem (since the code you posted seems to
be correct).  Can you post the URL that the getRequestURL is
returning?

Thanks,
Lane



Can you post the

On Jul 15, 9:13 am, walterc <[EMAIL PROTECTED]> wrote:
> i am using java binding to access google calendar.  everything works
> if i use ClientLogin api to set user credential.  i can get a list of
> my calendar entries and insert new event entry to various calendar
> entries.  but if i switch to AuthSub api for authentication, the url
> is generated correctly (AuthSubUtil.getRequestUrl("http://localhost:
> 8080/test/test.action", "http://www.google.com/calendar/feeds/
> default/", false, true)) and a one-time use token is gotten back as
> the result of a redirect to google security page.  but when i do
> AuthSubUtil.exchangeForSessionToken(token, null), i get a 403 (Attempt
> to upgrade a non-upgradeable token).  has anyone experience this?
> what am i missing?
>
> walter


--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to