authhandler: Add authCodeOpts param to TokenSource() #492
+64
−30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
** Related Issue on Github **
#491