-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mod_oauth: Persist new access/refresh tokens to config files.
Originally, updated refresh tokens were only saved in memory, which meant that whenever the module was loaded again, if the original refresh token was no longer valid, authentication would eventually starting failing until the tokens were updated manually. To solve this, rudimentary API has been added to config.c to allow updating/adding a config setting, which is used for updating the saved refresh token and, in some cases, the access token. This ensures that whenever the config is parsed again, we load the latest token(s) and don't use stale tokens which may no longer work.
- Loading branch information
1 parent
b4bb34a
commit cf85c5d
Showing
4 changed files
with
360 additions
and
14 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
Oops, something went wrong.