| Author |
How to get AuthSubSessionToken
|
Praveen Sangolli
Greenhorn
Joined: May 22, 2008
Posts: 28
|
|
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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26168
|
|
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.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Praveen Sangolli
Greenhorn
Joined: May 22, 2008
Posts: 28
|
|
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
Joined: May 22, 2008
Posts: 28
|
|
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.
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: How to get AuthSubSessionToken
|
|
|