-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow null Scopes in ExchangeCodeForTokenAsync() (#1488)
* Allow null Scopes Previously, using an initializer with Scopes set to null would crash when CreateAuthorizationCodeRequest() was called. Now, the null Scopes propogates safely through as a null Scope for AuthorizationCodeRequestUrl. This is necessary because some OAuth sites do not recognize the "scope" parameter and will return an error instead of the authorization token if the URL contains it. I have updated the tests and added one for the default authorization code request. * Allow null Scopes in ExchangeCodeForTokenAsync() Added missing code and test for the ExchangeCodeForTokenAsync() method as well.
- Loading branch information
1 parent
9483151
commit c08e1a6
Showing
2 changed files
with
25 additions
and
1 deletion.
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