-
-
Save pankajmouriya/809402d0227608814ecfabb4e62a09e8 to your computer and use it in GitHub Desktop.
Oauth.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Typically services using this method will issue access tokens that last anywhere from several hours to a couple weeks. | |
| When the service issues the access token, it also generates a refresh token that never expires and | |
| returns that in the response as well. (Note that refresh tokens can’t be issued using the Implicit grant.) | |
| When the access token expires, the application can use the refresh token to obtain a new access token. | |
| It can do this behind the scenes, and without the user’s involvement, so that it’s a seamless process to the user. | |
| The main benefit of this approach is that the service can use self-encoded access tokens which can be verified | |
| without a database lookup. However, this means there is no way to expire those tokens directly, so instead, | |
| the tokens are issued with a short expiration time so that the application is forced to continually refresh them, | |
| giving the service a chance to revoke an application’s access if needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment