🐛 Adjust OIDC scope to fix missing key
This commit is contained in:
parent
281877a48f
commit
6d10b036dd
@ -1 +1 @@
|
||||
__version__ = "1.7.1"
|
||||
__version__ = "1.7.2"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user