Skip to content

Commit d5f731c

Browse files
committed
Adding sample.json
1 parent 20d3ab0 commit d5f731c

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

AppCreationScripts/sample.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"Sample": {
3+
"RepositoryUrl": "https://github.com/Azure-Samples/ms-identity-python-webapp",
4+
"Title": "Integrating Microsoft Identity Platform with a Python web application",
5+
"Level": 300,
6+
"Service": "Python Web Application",
7+
"Endpoint": "Microsoft identity platform (formerly Azure AD v2.0)"
8+
},
9+
10+
/*
11+
This section describes the Azure AD Applications to configure, and their dependencies
12+
*/
13+
"AADApps": [
14+
{
15+
"Id": "python-webapp",
16+
"Name": "python-webapp",
17+
"Kind": "WebApp", /* SinglePageApplication, WebApp, Mobile, UWP, Desktop, Daemon, WebApi, Browserless */
18+
"Audience": "AzureADandPersonalMicrosoftAccount", /* AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, PersonalMicrosoftAccount */
19+
"PasswordCredentials": "Auto",
20+
"RequiredResourcesAccess": [
21+
{
22+
"Resource": "Microsoft Graph",
23+
"DelegatedPermissions": [
24+
"User.Read"
25+
]
26+
}
27+
],
28+
"ReplyUrls": "https://localhost:5000/getAToken",
29+
"LogoutUrl": "https://localhost:5000/logout"
30+
}
31+
],
32+
33+
/*
34+
This section describes how to update the code in configuration files from the apps coordinates, once the apps
35+
are created in Azure AD.
36+
Each section describes a configuration file, for one of the apps, it's type (XML, JSon, plain text), its location
37+
with respect to the root of the sample, and the mappping (which string in the config file is mapped to which value
38+
*/
39+
"CodeConfiguration": [
40+
{
41+
"App": "webApp",
42+
"SettingKind": "Text",
43+
"SettingFile": "\\..\\app_config.py",
44+
"Mappings": [
45+
{
46+
"key": "TENANT",
47+
"value": "$tenantName"
48+
},
49+
{
50+
"key": "CLIENT_SECRET",
51+
"value": ".AppKey"
52+
},
53+
{
54+
"key": "CLIENT_ID",
55+
"value": ".AppId"
56+
}
57+
]
58+
}
59+
]
60+
}

0 commit comments

Comments
 (0)