Skip to content

Commit b630d62

Browse files
committed
update sample azure config in OAuth example
1 parent e93b540 commit b630d62

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/oauth/config.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,19 @@
7272
"remote_app": {
7373
"client_id": os.environ.get("AZURE_APPLICATION_ID"),
7474
"client_secret": os.environ.get("AZURE_SECRET"),
75-
"api_base_url": f"https://login.microsoftonline.com/{os.environ.get('AZURE_TENANT_ID')}/oauth2",
75+
"api_base_url": f"https://login.microsoftonline.com/{os.environ.get('AZURE_TENANT_ID')}/oauth2/v2.0",
7676
"client_kwargs": {
77-
"scope": "User.read name preferred_username email profile upn",
77+
"scope": "email profile openid",
7878
"resource": os.environ.get("AZURE_APPLICATION_ID"),
7979
},
8080
"request_token_url": None,
8181
"access_token_url": f"https://login.microsoftonline.com/"
8282
f"{os.environ.get('AZURE_TENANT_ID')}/"
83-
"oauth2/token",
83+
"oauth2/v2.0/token",
8484
"authorize_url": f"https://login.microsoftonline.com/"
8585
f"{os.environ.get('AZURE_TENANT_ID')}/"
86-
f"oauth2/authorize",
86+
f"oauth2/v2.0/authorize",
87+
"jwks_uri": "https://login.microsoftonline.com/common/discovery/v2.0/keys",
8788
},
8889
},
8990
{

0 commit comments

Comments
 (0)