Authorization Code Grant Flow & Refresh Token Flow #3263
Unanswered
zecarlos94
asked this question in
Q&A
Replies: 1 comment
-
For reference, see the same discussion in the Ory Community archive:
Can you maybe point to some third party documentation that describes what you are trying to do @zecarlos94 ? I think there is some misunderstanding as to how OAuth2 works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have the following use case: Login process using authorization code grant flow which provides both an access_token (with TTL: 1h) and a refresh_token (with TTL: 12h)
The goal here is to generate 1 access token and 1 refresh token after a successful login and then keep generating new access tokens (after previous one expires) until the initial refresh token is no longer valid forcing user to login again. Using these TTLs it should generate 13 access tokens and only 1 refresh token per login session.
When I try to get a new access token using the refresh token, after the first access token expired, what happens is:
What I need to know is:
PS: I’m using this Oauth2 lib https://www.npmjs.com/package/simple-oauth2
Beta Was this translation helpful? Give feedback.
All reactions