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

Remove oauth scope warning and redundant oauth scope #325

Merged

Conversation

deadlycoconuts
Copy link
Contributor

Context

When the Turing SDK is used to authenticate a user with a user account, the warning Not all requested scopes were granted by the authorization server, missing scopes email. gets thrown because the scope specified for the email field was stated as email instead of https://www.googleapis.com/auth/userinfo.email (see https://developers.google.com/identity/protocols/oauth2/scopes#oauth2 for more info).

The relevant change has already been made in caraml-dev/caraml-sdk#3, and this PR makes a change to the version of caraml-auth-google to incorporate those changes. The unused constant OAUTH_SCOPES has also been removed from the SDK in the process.

Thanks @ariefrahmansyah for catching this!

@deadlycoconuts deadlycoconuts added the type: bug Something isn't working label Mar 14, 2023
@deadlycoconuts deadlycoconuts requested review from ariefrahmansyah and a team March 14, 2023 07:59
@deadlycoconuts deadlycoconuts self-assigned this Mar 14, 2023
Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

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

Thanks for this fix, @deadlycoconuts !

@deadlycoconuts deadlycoconuts merged commit 5b38dd7 into caraml-dev:main Mar 14, 2023
@deadlycoconuts deadlycoconuts deleted the remove_redundant_oauth_scopes branch March 28, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants