File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments