diff --git a/app/config.py b/app/config.py index cb0fa2e..802d045 100644 --- a/app/config.py +++ b/app/config.py @@ -17,6 +17,10 @@ class Settings(BaseSettings): gitea_oauth_client_secret: str = "" gitea_webhook_secret: str = "" + # GitHub + github_client_id: str = "" + github_client_secret: str = "" + # OAuth2 oauth_redirect_uri: str = "http://localhost:8080/auth/callback" diff --git a/app/routers/auth.py b/app/routers/auth.py index b175723..456e181 100644 --- a/app/routers/auth.py +++ b/app/routers/auth.py @@ -8,7 +8,6 @@ from fastapi import APIRouter, Request, Query from fastapi.responses import RedirectResponse, HTMLResponse from app.auth.session import SessionManager -from app.auth.oauth import gitea_oauth from app.config import settings logger = logging.getLogger(__name__) @@ -62,7 +61,8 @@ body{background:#191919;color:#fff;font-family:-apple-system,BlinkMacSystemFont,
- + +