- Make username login case-insensitive (Dvir = dvir = DVIR) - Add Google OAuth login/signup functionality - Install required dependencies (authlib, httpx, python-dotenv) - Create OAuth endpoints: /auth/google/url, /auth/google/callback - Add Google login button to frontend with styled UI - Configure environment variables for OAuth credentials - Add comprehensive setup documentation - Secure .env file with .gitignore
1.5 KiB
1.5 KiB
Quick Google OAuth Setup Instructions
Your Google OAuth credentials have been configured in the backend!
✅ Already Configured
- Client ID:
143092846986-b7fv9kucjugh9h5ojq60e1e44em57n1h.apps.googleusercontent.com - Client Secret:
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 - Backend
.envfile created - All dependencies installed
🔧 Required: Google Cloud Console Setup
IMPORTANT: You need to add the redirect URI in your Google Cloud Console:
- Go to: https://console.cloud.google.com/apis/credentials
- Find your OAuth 2.0 Client ID:
143092846986-b7fv9kucjugh9h5ojq60e1e44em57n1h - Click Edit (pencil icon)
- Under Authorized redirect URIs, add:
http://localhost:8000/auth/google/callback - Click Save
🚀 Test the Application
Start Backend:
cd backend
python -m uvicorn main:app --reload --host 0.0.0.0 --port 8000
Start Frontend (in another terminal):
cd frontend
npm run dev
Test:
- Open http://localhost:5173
- Try logging in with username (case-insensitive: "Dvir" = "dvir" = "DVIR")
- Click Continue with Google to test OAuth login
📝 Features Implemented
- ✅ Case-insensitive username login
- ✅ Google OAuth login/signup
- ✅ Automatic user creation for new Google accounts
- ✅ Secure credential storage in
.env
⚠️ Security Note
The .env file contains sensitive credentials and is excluded from git via .gitignore.
Never commit this file to your repository!