oauth - Multiple OAuth2 access tokens for single application? -


maybe clarify me, not finding written in documentation...

i have single application, running on multiple machines. oauth2 have obtain access token in order work google api. need use single access token across hosts , take care synchronized across them (which increases complexity level, once token expires - must refreshed , again distributed across hosts), or possible each host own token , cache locally?

i not sure either 2nd option safe (though easier implement), documentation writes token can become invalid once refreshed. happen, while 1 host creating "own" token other tokens (from other hosts) become automatically invalid?

i assume application web application deployed in cluster, correct?

is there session state distributed on cluster? if so, add access token session.

in theory can have multiple access tokens, don't rely on that. there rate limits can run into, if machine getting multiple access tokens not issue.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -