Add Google login#74
Merged
Merged
Conversation
…viderClient implementation
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.
Summary
user_identitiestable added to link social accounts; password column made nullable for social-only usersCORS_ALLOWED_ORIGIN→WEB_ORIGINBackend
Features
SocialAuthController— OAuth flow endpoints: redirect URL, callback, account linkingSocialAuthService— orchestrates find-or-create user logic for social loginUserIdentityService— manages user ↔ provider identity mappingGoogleOidcProviderClient— Google OIDC token verification and user info fetchOidcProviderClientRegistry— registry for OIDC provider clientsOidcStateStore— CSRF state parameter storage for OAuth flowUserController,UserService—PATCH /users/{id}endpoint to set display nameSecurityConfig— open social login endpointsSocialAuthConfig— OIDC config beanChore
V5__add_timestamp_columns.sql— addcreated_at,updated_atto usersV6__modify_password_nullable.sql— make password nullableV7__add_user_identities_table.sql— new table for social identity linkingCORS_ALLOWED_ORIGIN→WEB_ORIGINin.env.example,application.yaml, CI workflowFrontend
Features
LoginPage.tsx— Google sign-in button with dividerGoogleCallbackPage.tsx— handles OAuth redirect, exchanges code, redirects on successInitNamePage.tsx— post-social-login page to set display name (skippable)App.tsx— new routes for/auth/callback/googleand/init-nameuseAuth.tsx— addreloadUserhelper to refresh user state after name update