Verbessere OAuth-Konfiguration mit explicit Redirect-URIs

- Konfiguriere Redirect-URI für GitHub OAuth explizit
- Füge NEXT_PUBLIC_FRONTEND_URL für konsistente OAuth-Callbacks hinzu
- Verwende hostname in Redirect-URIs für bessere Kompatibilität
- Aktualisiere Scripts, um Frontend-URL in Umgebungsvariablen zu setzen
- Füge bessere Fehlerdiagnose für OAuth-Prozess hinzu

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-04-01 14:02:17 +02:00
parent a9a1bf52db
commit a7760a12ce
5 changed files with 56 additions and 4 deletions

View File

@@ -39,6 +39,9 @@ cat > "$ENV_FILE" << EOL
# Backend API Konfiguration
NEXT_PUBLIC_API_URL=${BACKEND_URL}
# Frontend-URL für OAuth Callback
NEXT_PUBLIC_FRONTEND_URL=http://$(hostname):3000
# OAuth Konfiguration (falls nötig)
OAUTH_CLIENT_ID=client_id
OAUTH_CLIENT_SECRET=client_secret