Saturday, 15 May 2010

java - Is the Google API for the id token too slow for some cases? -



java - Is the Google API for the id token too slow for some cases? -

since didn't have problems obtain id token , utilize it, since maybe 2 weeks obtaining new token (deleting old , obtaining new one) , verifying doesn't work properly.

i have android app on client side , java-servlet on server-side. verification done described here. client obtains token googleauthutil.gettoken() method. there no problem obtaining new token , verifying it. problem occurs when seek clear old token googleauthutil.cleartoken() , obtain new token. verification fails. checking on https://www.googleapis.com/oauth2/v1/tokeninfo?id_token= shows me token valid. after resending same token manually backend verifiers token succesfully.

it seems google api takes longer aknowledge new token phone call client backend. or code incorrect? don't problem occured suddenly.

thank you

edit: found problem. wasn't api. problem server time behind. after syncronizing clock seems work.

java android google-api access-token google-http-client

No comments:

Post a Comment