From 6d10b036dd44614de9ed15eac7d78cc5437e9bc4 Mon Sep 17 00:00:00 2001 From: itskovacs Date: Thu, 24 Jul 2025 21:26:15 +0200 Subject: [PATCH] :bug: Adjust OIDC scope to fix missing key --- backend/trip/__init__.py | 2 +- backend/trip/routers/auth.py | 2 +- backend/trip/security.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/trip/__init__.py b/backend/trip/__init__.py index 3c1e9cb..1db13ec 100644 --- a/backend/trip/__init__.py +++ b/backend/trip/__init__.py @@ -1 +1 @@ -__version__ = "1.7.1" +__version__ = "1.7.2" diff --git a/backend/trip/routers/auth.py b/backend/trip/routers/auth.py index 4c2f1c0..c58eb05 100644 --- a/backend/trip/routers/auth.py +++ b/backend/trip/routers/auth.py @@ -20,7 +20,7 @@ async def auth_params() -> AuthParams: oidc_config = await get_oidc_config() auth_endpoint = oidc_config.get("authorization_endpoint") data["oidc"] = ( - f"{auth_endpoint}?client_id={settings.OIDC_CLIENT_ID}&redirect_uri={settings.OIDC_REDIRECT_URI}&response_type=code&scope=openid" + f"{auth_endpoint}?client_id={settings.OIDC_CLIENT_ID}&redirect_uri={settings.OIDC_REDIRECT_URI}&response_type=code&scope=openid+profile" ) return data diff --git a/backend/trip/security.py b/backend/trip/security.py index 26c2602..b3b9590 100644 --- a/backend/trip/security.py +++ b/backend/trip/security.py @@ -61,7 +61,7 @@ def get_oidc_client(): return OAuth2Client( client_id=settings.OIDC_CLIENT_ID, client_secret=settings.OIDC_CLIENT_SECRET, - scope="openid", + scope="openid profile", redirect_uri=settings.OIDC_REDIRECT_URI, )