Skip to content

Commit

Permalink
docs: add Azure OAUTH example (#1837)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Vaz Gaspar <danielvazgaspar@gmail.com>
  • Loading branch information
thesuperzapper and dpgaspar authored Apr 29, 2022
1 parent 090ddb4 commit cc4c0b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,23 @@ Specify a list of OAUTH_PROVIDERS in **config.py** that you want to allow for yo
"authorize_url": "https://COGNITO_APP.auth.REGION.amazoncognito.com/authorize",
},
},
{
"name": "azure",
"icon": "fa-windows",
"token_key": "access_token",
"remote_app": {
"client_id": "AZURE_APPLICATION_ID",
"client_secret": "AZURE_SECRET",
"api_base_url": "https://#.microsoftonline.com/AZURE_TENANT_ID/oauth2",
"client_kwargs": {
"scope": "User.read name preferred_username email profile upn",
"resource": "AZURE_APPLICATION_ID",
},
"request_token_url": None,
"access_token_url": "https://#.microsoftonline.com/AZURE_TENANT_ID/oauth2/token",
"authorize_url": "https://#.microsoftonline.com/AZURE_TENANT_ID/oauth2/authorize",
},
},
]

This needs a small explanation, you basically have five special keys:
Expand Down

0 comments on commit cc4c0b3

Please # to comment.