-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy pathsample.json
60 lines (58 loc) · 1.86 KB
/
sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"Sample": {
"RepositoryUrl": "https://github.com/Azure-Samples/ms-identity-python-webapp",
"Title": "Integrating Microsoft Identity Platform with a Python web application",
"Level": 300,
"Client": "Python Web Application",
"Service": "Microsoft Graph",
"Endpoint": "Microsoft identity platform (formerly Azure AD v2.0)"
},
/*
This section describes the Azure AD Applications to configure, and their dependencies
*/
"AADApps": [
{
"Id": "pythonwebapp",
"Name": "python-webapp",
"Kind": "WebApp", /* SinglePageApplication, WebApp, Mobile, UWP, Desktop, Daemon, WebApi, Browserless */
"Audience": "AzureADandPersonalMicrosoftAccount", /* AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, PersonalMicrosoftAccount */
"PasswordCredentials": "Auto",
"RequiredResourcesAccess": [
{
"Resource": "Microsoft Graph",
"DelegatedPermissions": [
"User.ReadBasic.All"
]
}
],
"ReplyUrls": "http://localhost:5000/getAToken"
}
],
/*
This section describes how to update the code in configuration files from the apps coordinates, once the apps
are created in Azure AD.
Each section describes a configuration file, for one of the apps, it's type (XML, JSon, plain text), its location
with respect to the root of the sample, and the mappping (which string in the config file is mapped to which value
*/
"CodeConfiguration": [
{
"App": "pythonwebapp",
"SettingKind": "Replace",
"SettingFile": "\\..\\.env",
"Mappings": [
{
"key": "<tenant id>",
"value": "$tenantName"
},
{
"key": "<client secret>",
"value": ".AppKey"
},
{
"key": "<client id>",
"value": ".AppId"
}
]
}
]
}