Skip to content

Commit 67d9ef5

Browse files
archieagjmprieur
authored andcommitted
Add configuration for ready-to-go downloaded sample - python daemon app (#7)
1 parent dfdf5d8 commit 67d9ef5

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

AppCreationScripts/apps.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
/*
3+
This section describes the Azure AD Applications to configure, and their dependencies
4+
*/
5+
6+
"Sample": {
7+
"Title": "Acquire a token and call Microsoft Graph API from a console app using app's identity",
8+
"Level": 300,
9+
"Client": "Python"
10+
},
11+
"AppRegistrations": [
12+
{
13+
"x-ms-id": "ms-identity-python-daemon",
14+
"x-ms-name": "python-daemon",
15+
"x-ms-version": "2.0",
16+
"passwordCredentials": [
17+
{
18+
"value": "{auto}"
19+
}
20+
],
21+
"requiredResourceAccess": [
22+
{
23+
"x-ms-resourceAppName": "Microsoft Graph",
24+
"resourceAppId": "00000003-0000-0000-c000-000000000000",
25+
"resourceAccess": [
26+
{
27+
"id": "e1fe6dd8-ba31-4d61-89e7-88639da4683d",
28+
"type": "Scope",
29+
"x-ms-name": "User.Read"
30+
}
31+
]
32+
},
33+
{
34+
"x-ms-resourceAppName": "Microsoft Graph",
35+
"resourceAppId": "00000003-0000-0000-c000-000000000000",
36+
"resourceAccess": [
37+
{
38+
"id": "df021288-bdef-4463-88db-98f22de89214",
39+
"type": "Role",
40+
"x-ms-name": "User.Read.All"
41+
}
42+
]
43+
}
44+
],
45+
"codeConfigurations": [
46+
{
47+
"settingFile": "ms-identity-python-daemon/1-Call-MsGraph-WithSecret/parameters.json",
48+
"replaceTokens": {
49+
"appId": "your_client_id",
50+
"tenantId": "Enter_the_Tenant_Name_Here",
51+
"clientSecret": "The secret generated by AAD during your confidential app registration"
52+
}
53+
}
54+
]
55+
}
56+
]
57+
}

0 commit comments

Comments
 (0)