• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get AuthSubSessionToken

 
Praveen Sangolli
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am trying to get the AuthSubSessionToken in my servlet, I was successful in getting the token by sending this request

https://www.google.com/accounts/AuthSubRequest?scope=Fm8%2Ffeeds%2F&session=1&secure=0&next=htome.html

but this is a single-use AuthSub token.

I want to exchange this token to get the AuthSub session token for multiple requests.
Can anyone tel me how can i achieve that and if anyone could paste some sample code on how to go about it, I would really appreciate it..

Any help is appreciated

Thanks in advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34656
366
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Praveen,
According to Google's documentation, you need to get a request token first. Then you can make another request to upgrade it to a session token.
 
Praveen Sangolli
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne ,

As you said ,I have got the first token . Issue is that I am not able to exchange this token with the session token..
 
Praveen Sangolli
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i am trying to exchange it for a session token i am getting this exception

com.google.gdata.util.AuthenticationException: 403: Invalid AuthSub token.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic