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

Incorrect nonce check for google - sign in with id token #1829

Open
Lxstr opened this issue Nov 3, 2024 · 0 comments
Open

Incorrect nonce check for google - sign in with id token #1829

Lxstr opened this issue Nov 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Lxstr
Copy link

Lxstr commented Nov 3, 2024

Bug report

  • [ x] I confirm this is a bug with Supabase, not with my own application.
  • [ x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

IdToken returned by google does not contain a hashed nonce but currently, gotrue hashes the nonce in the request and checks if it matches the nonce in the id token payload.

Therefore it is impossible to get a successful nonce check. This have been confirmed against google package which returns a success nonce check:

https://google-auth.readthedocs.io/en/master/reference/google.oauth2.id_token.html

This has also been previously mentioned here #412

@Lxstr Lxstr added the bug Something isn't working label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant