You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider switching to "internal" token verification like we do in Sign in with Apple, which would allow for testing this offline and with an expired token (mocking the time via clock)
Consider simplifying the configuration to not require the whole JSON configu file, but rather just specify the Google "client ID", which is the only field we currently use on that level (to verify that the incoming token was actually meant for our app).
Handle configuration all client IDs centrally (see comment). This is a blocker if using multiple platforms (ios and android)
Handle refresh tokens, and occasionally background checks (like Apple)
Does Google also offer a PUSH web hook for this?
Check when the previous flow using authenticationCode (in GoogleEndpoint.authenticateWithServerAuthCode) was used (web & current implementation uses an identity token, but would be great to get them aligned to have 1 codepath and similar functionality)
Sadlym I can not commit this test, as it calls to Google's API for reading the token, which will fail as soon as the token is expired (and we should not have external dependencies in the test anyway).
Activity
feat(auth2): Create module `serverpod_auth_google_account`
feat(auth2): Create module `serverpod_auth_google_account`
feat(auth2): Create module `serverpod_auth_google_account`
Implement Google account authentication
Implement Google account authentication
tp commentedon Jul 25, 2025
Just ran a local integration test for this:
It seems like the format of the identify token changed and not the email verification status is given as a String (
"true"/"false") under keyemail_verified. (At least for the one created on web, maybe app tokens differ.) (This matches the spec published at https://accounts.google.com/.well-known/openid-configuration)Sadlym I can not commit this test, as it calls to Google's API for reading the token, which will fail as soon as the token is expired (and we should not have external dependencies in the test anyway).
So maybe a later implementation can fetch the keys from Google and verify the token locally with the keys published at https://www.googleapis.com/oauth2/v3/certs, just like the Apple login works (and is tested).