Skip to content

Instantly share code, notes, and snippets.

@pdr-tuche
Created December 3, 2023 21:14
Show Gist options
  • Save pdr-tuche/4df8bde9343efacfce1917829ec6210b to your computer and use it in GitHub Desktop.
Save pdr-tuche/4df8bde9343efacfce1917829ec6210b to your computer and use it in GitHub Desktop.
Configuration Azure AD for django
{
"type": {
"client_type": "CONFIDENTIAL",
"authority_type": "SINGLE_TENANT",
"framework": "DJANGO"
},
"client":{
"client_id": "{enter your client id}",
"client_credential": "{enter your client credential}",
"authority": "https://login.microsoftonline.com/{enter your tenant id}",
},
"auth_request":{
"redirect_uri": null,
"scopes":[],
"response_type": "code"
},
"flask": null,
"django":{
"id_web_configs": "MS_ID_WEB_CONFIGS",
"auth_endpoints": {
"prefix": "auth",
"sign_in": "sign_in",
"edit_profile": "edit_profile",
"redirect": "redirect",
"sign_out": "sign_out",
"post_sign_out": "post_sign_out",
}
}
}
@pdr-tuche
Copy link
Author

pdr-tuche commented Dec 3, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment