Skip to content

Commit 87a2650

Browse files
authored
Update Azure login to use OpenID Connect (#220)
1 parent 505543b commit 87a2650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

alertaclient/auth/azure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ def login(client, azure_tenant, client_id):
99
redirect_uri = 'http://localhost:9004'
1010

1111
url = (
12-
'https://login.microsoftonline.com/{azure_tenant}/oauth2/authorize?'
12+
'https://login.microsoftonline.com/{azure_tenant}/oauth2/v2.0/authorize?'
1313
'response_type=code'
1414
'&client_id={client_id}'
1515
'&redirect_uri={redirect_uri}'
16+
'&scope=openid%20profile%20email'
1617
'&state={state}'
1718
).format(
1819
azure_tenant=azure_tenant,

0 commit comments

Comments
 (0)