-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
authhandler: Add authCodeOpts param to TokenSource
Certain implementations of OAuth2 (such as Reddit) have extra parameters available as part of their OAuth2 flow. This commit adds the variadic parameter `authCodeOpts` to the TokenSource function in authhandler, allowing a caller to pass as many of these extra URL parameters as they want or need. Tests in the authhandler package have also been updated to reflect this change. **Does this commit introduce any breaking changes?** No. The new parameter is variadic, as are its uses, which means that existing code will not be affected by this change.
- Loading branch information
Showing
2 changed files
with
64 additions
and
30 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