Repository navigation
v363: Move sign-in to the public identity hub - #277
Merged
Merged
Conversation
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google sign-in now goes through the public identity hub at
https://id.samebase.cominstead ofhttps://auth.samebase.com. Each deployment registers a new hub client there on its next deploy.What a user sees: the sign-in hop goes through id.samebase.com, under the same hub name (Samebase) with the same Terms and Privacy links. Google may show its account chooser or consent screen again, because the hub has its own Google OAuth client.
Production users keep their accounts. Convex Auth keys a hub account on
(provider "hub", providerAccountId = sub), and the issuer is stored nowhere:readHubProfilereturnsid: claims.sub(apps/scout/convex/auth.ts), and the accounts table holds onlyprovider,providerAccountId,userId. Both hubs run the same broker, which issuessub = google:<Google account id>. Google's account id does not depend on the OAuth client, so thesubis the same on both hubs. If a lookup ever misses,createHubUserstill finds the user by verified email.Checked:
googleconnector with no resources. That covers this client:googleonly, one callback per deployment.pnpm run check(vp check, typecheck, tests): passed, 1583 tests.The old clients on auth.samebase.com are not deleted. The production client stays until someone removes it by hand. Preview clients expire on their own.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.