Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set include_granted_scopes=true in the auth request #70

Merged
merged 4 commits into from
Nov 16, 2021

Conversation

petea
Copy link
Contributor

@petea petea commented Nov 9, 2021

In order to restore a user's previously granted scopes at sign-in time, we'll want to start using include_granted_scopes=true in the auth request.

@petea petea assigned mdmathias and unassigned mdmathias Nov 9, 2021
@petea petea requested a review from mdmathias November 9, 2021 22:50
Copy link
Collaborator

@mdmathias mdmathias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a test to GIDSignInTest.m to ensure that the additionalParameters passed to -[OIDAuthorizationRequest initWithConfiguration:clientId:scopes:redirectURL:responseType:additionalParameters:] is correct? It'd be nice to document in test the expectations we have for this.

@petea petea added this to the 6.1.0 milestone Nov 10, 2021
@petea petea force-pushed the petea-include-granted-scopes branch from e933779 to 964b9d8 Compare November 16, 2021 19:02
@petea
Copy link
Contributor Author

petea commented Nov 16, 2021

Could we add a test to GIDSignInTest.m to ensure that the additionalParameters passed to -[OIDAuthorizationRequest initWithConfiguration:clientId:scopes:redirectURL:responseType:additionalParameters:] is correct? It'd be nice to document in test the expectations we have for this.

Added a check for the static include_granted_scopes value. The other additionalParameters values are dynamic and get checked in specific tests.

@petea petea requested a review from mdmathias November 16, 2021 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants