Add SSO (Google / Microsoft) for account registration and sign-in #24
Notifications
Due Date
No due date set.
Blocks
#11 Connect OneDrive / Google Drive as RAG document sources
ai_ml_operations/chat_backend
Reference: ai_ml_operations/chat_backend#24
Reference in New Issue
Block a user
Summary
Add single sign-on (SSO) so users can register and sign in with an identity provider (Google and/or Microsoft) instead of only email/password.
Blocks: ai_ml_operations/chat_backend#11 (Connect OneDrive / Google Drive as RAG document sources) — do this first. Drive OAuth should reuse the same Google / Microsoft OAuth app setup and token patterns established here.
Related:
Motivation
Self-serve registration (#31) is email/password only. SSO lowers friction for account creation and sign-in, and establishes OAuth client + secure token storage that #11 needs for OneDrive (Microsoft Graph) and Google Drive.
Proposed behavior
CustomUser(by verified email), issues the same JWT session the app already uses.Backend requirements (
chat_backend)sub, user FK); support refresh where applicable for future Drive reuse (#11).env.example/.env.prod.exampleFrontend requirements (
chat_web_app)Acceptance criteria
Out of scope (unless needed for MVP)
Open questions
DriveConnectionvs genericOAuthIdentity)?Notes
Prefer one shared OAuth-identity / token model so #11 does not re-implement Google/Microsoft app registration and secure storage.
Blocks: ai_ml_operations/chat_backend#11 — #11
Related FE sign-up: ai_ml_operations/chat_web_app#31 — ai_ml_operations/chat_web_app#31