Skip to content

Commit e93b540

Browse files
authored
docs(security): update Azure config to use OAuth v2 endpoint
1 parent 989d4b1 commit e93b540

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/security.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,16 +331,17 @@ Specify a list of OAUTH_PROVIDERS in **config.py** that you want to allow for yo
331331
"remote_app": {
332332
"client_id": "AZURE_APPLICATION_ID",
333333
"client_secret": "AZURE_SECRET",
334-
"api_base_url": "https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2",
334+
"api_base_url": "https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0",
335335
"client_kwargs": {
336-
"scope": "User.read name preferred_username email profile upn",
336+
"scope": "email profile openid",
337337
"resource": "AZURE_APPLICATION_ID",
338338
# Optionally enforce signature JWT verification
339339
"verify_signature": False
340340
},
341341
"request_token_url": None,
342-
"access_token_url": "https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/token",
343-
"authorize_url": "https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/authorize",
342+
"access_token_url": "https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0/token",
343+
"authorize_url": "https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0/authorize",
344+
"jwks_uri": "https://login.microsoftonline.com/common/discovery/v2.0/keys",
344345
},
345346
},
346347
{

0 commit comments

Comments
 (0)