Skip to content

Set include_granted_scopes=true in the auth request - #70

Merged
petea merged 4 commits into
mainfrom
petea-include-granted-scopes
Nov 16, 2021
Merged

Set include_granted_scopes=true in the auth request#70
petea merged 4 commits into
mainfrom
petea-include-granted-scopes

Conversation

@petea

@petea petea commented Nov 9, 2021

Copy link
Copy Markdown
Contributor

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

@mdmathias mdmathias left a comment

Copy link
Copy Markdown
Collaborator

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

petea commented Nov 16, 2021

Copy link
Copy Markdown
Contributor Author

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.

2 participants