Skip to content

Commit 6d10b03

Browse files
committed
🐛 Adjust OIDC scope to fix missing key
1 parent 281877a commit 6d10b03

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

backend/trip/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.7.1"
1+
__version__ = "1.7.2"

backend/trip/routers/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def auth_params() -> AuthParams:
2020
oidc_config = await get_oidc_config()
2121
auth_endpoint = oidc_config.get("authorization_endpoint")
2222
data["oidc"] = (
23-
f"{auth_endpoint}?client_id={settings.OIDC_CLIENT_ID}&redirect_uri={settings.OIDC_REDIRECT_URI}&response_type=code&scope=openid"
23+
f"{auth_endpoint}?client_id={settings.OIDC_CLIENT_ID}&redirect_uri={settings.OIDC_REDIRECT_URI}&response_type=code&scope=openid+profile"
2424
)
2525

2626
return data

backend/trip/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_oidc_client():
6161
return OAuth2Client(
6262
client_id=settings.OIDC_CLIENT_ID,
6363
client_secret=settings.OIDC_CLIENT_SECRET,
64-
scope="openid",
64+
scope="openid profile",
6565
redirect_uri=settings.OIDC_REDIRECT_URI,
6666
)
6767

0 commit comments

Comments
 (0)