Google api Java client: access token expiration -


i using java sdk getting user , group data in server server flow , works ok.

the sdk nicely hides oauth complexity , request.execute() method makes first http call oauth token , second call actual api getting user , group data.

i have doubts around how sdk handles calls oauth endpoint

  1. does request.execute() method calls oauth endpoint?
  2. if not how often?
  3. is access token "cached" sdk?
  4. does sdk manage token expiration properly?

googlecredential "does right things" token refreshing.

  1. no. caches token , reuses it.
  2. the token returned server has expiration time. token can reused long hasn't expired.
  3. yes, in-memory, unless using filedatastorefactory
  4. yes. caches token until expire, , refreshes pro-actively, before getting authentication error server.

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -