
Features: - Complete Google OAuth 2.0 integration with ID token and authorization code flows - Enhanced User model with Google OAuth fields (google_id, is_google_user, email_verified, profile_picture) - Google OAuth service for token verification and user info extraction - Multiple authentication endpoints: - GET /auth/google/oauth-url (get OAuth URL for frontend) - POST /auth/google/login-with-token (direct ID token login) - POST /auth/google/login-with-code (authorization code exchange) - Smart user handling: creates new users or links existing accounts - Issues own JWT tokens after Google authentication - Database migration 004 for Google OAuth fields - Enhanced login logic to handle Google vs password users - Comprehensive README with Google OAuth setup instructions - Frontend integration examples for both OAuth flows Google OAuth automatically: - Creates user accounts on first login - Links existing email accounts to Google - Extracts profile information (name, picture, locale) - Verifies email addresses - Issues secure JWT tokens for API access
18 lines
376 B
Plaintext
18 lines
376 B
Plaintext
fastapi==0.104.1
|
|
uvicorn[standard]==0.24.0
|
|
python-multipart==0.0.6
|
|
sqlalchemy==2.0.23
|
|
alembic==1.12.1
|
|
python-jose[cryptography]==3.3.0
|
|
passlib[bcrypt]==1.7.4
|
|
boto3==1.34.0
|
|
openai==1.3.7
|
|
python-decouple==3.8
|
|
ruff==0.1.6
|
|
requests==2.31.0
|
|
ffmpeg-python==0.2.0
|
|
python-dotenv==1.0.0
|
|
email-validator==2.1.0
|
|
google-auth==2.25.2
|
|
google-auth-oauthlib==1.1.0
|
|
google-auth-httplib2==0.2.0 |