forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-59510 core_oauth2: add autorefresh mode to oauth2\client
Changes: - The client can now be instantiated with the new mode enabled. - A user refresh token will be stored if returned as part of the authorization_code grant but only if the user is authenticated and only if the mode is enabled. - If the mode permits it, attempt to exchange a stored refresh token for a new access token during login checks, allowing access to continue across sessions without the need to re-grant consent every time. - Purge all refresh tokens for a given user, issuer and scope on client log out. This makes sure logout persists across logins.
- Loading branch information
Showing
3 changed files
with
217 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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