fix: add appid to the URL to ensure we fetch the correct parameters in all scenarios

This commit is contained in:
aleprj 2025-04-07 11:15:47 -03:00 committed by GitHub
parent 9cb1104f09
commit 818d24e672
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -560,7 +560,7 @@ def load_oauth_providers():
name="microsoft",
client_id=MICROSOFT_CLIENT_ID.value,
client_secret=MICROSOFT_CLIENT_SECRET.value,
server_metadata_url=f"https://login.microsoftonline.com/{MICROSOFT_CLIENT_TENANT_ID.value}/v2.0/.well-known/openid-configuration",
server_metadata_url=f"https://login.microsoftonline.com/{MICROSOFT_CLIENT_TENANT_ID.value}/v2.0/.well-known/openid-configuration?appid={MICROSOFT_CLIENT_ID.value}",
client_kwargs={
"scope": MICROSOFT_OAUTH_SCOPE.value,
},