Skip to content

Commit 8bb7f12

Browse files
SLdragonhermanwenhe
authored andcommitted
perf: update teams app manifest version and add sso resources (OfficeDev#13010)
Co-authored-by: rentu <rentu>
1 parent fc1ec1e commit 8bb7f12

File tree

25 files changed

+336
-311
lines changed

25 files changed

+336
-311
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,114 @@
11
{
2-
"id": "{{state.fx-resource-aad-app-for-teams.objectId}}",
3-
"appId": "{{state.fx-resource-aad-app-for-teams.clientId}}",
4-
"name": "{{config.manifest.appName.short}}-aad",
5-
"accessTokenAcceptedVersion": 2,
6-
"signInAudience": "AzureADMyOrg",
7-
"optionalClaims": {
8-
"idToken": [],
9-
"accessToken": [
10-
{
11-
"name": "idtyp",
12-
"source": null,
13-
"essential": false,
14-
"additionalProperties": []
15-
}
16-
],
17-
"saml2Token": []
18-
},
19-
"requiredResourceAccess": [
20-
{
21-
"resourceAppId": "Microsoft Graph",
22-
"resourceAccess": [
23-
{
24-
"id": "User.Read",
25-
"type": "Scope"
26-
}
27-
]
28-
}
29-
],
30-
"oauth2Permissions": [
31-
{
32-
"adminConsentDescription": "Allows Teams to call the app's web APIs as the current user.",
33-
"adminConsentDisplayName": "Teams can access app's web APIs",
34-
"id": "{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}",
35-
"isEnabled": true,
36-
"type": "User",
37-
"userConsentDescription": "Enable Teams to call this app's web APIs with the same rights that you have",
38-
"userConsentDisplayName": "Teams can access app's web APIs and make requests on your behalf",
39-
"value": "access_as_user"
40-
}
2+
"id": "{{state.fx-resource-aad-app-for-teams.objectId}}",
3+
"appId": "{{state.fx-resource-aad-app-for-teams.clientId}}",
4+
"displayName": "{{config.manifest.appName.short}}-aad",
5+
"identifierUris": [
6+
"{{state.fx-resource-aad-app-for-teams.applicationIdUris}}"
7+
],
8+
"signInAudience": "AzureADMyOrg",
9+
"api": {
10+
"requestedAccessTokenVersion": 2,
11+
"oauth2PermissionScopes": [
12+
{
13+
"adminConsentDescription": "Allows Teams to call the app's web APIs as the current user.",
14+
"adminConsentDisplayName": "Teams can access app's web APIs",
15+
"id": "{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}",
16+
"isEnabled": true,
17+
"type": "User",
18+
"userConsentDescription": "Enable Teams to call this app's web APIs with the same rights that you have",
19+
"userConsentDisplayName": "Teams can access app's web APIs and make requests on your behalf",
20+
"value": "access_as_user"
21+
}
4122
],
4223
"preAuthorizedApplications": [
24+
{
25+
"appId": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
26+
"delegatedPermissionIds": [
27+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
28+
]
29+
},
30+
{
31+
"appId": "5e3ce6c0-2b1f-4285-8d4b-75ee78787346",
32+
"delegatedPermissionIds": [
33+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
34+
]
35+
},
36+
{
37+
"appId": "d3590ed6-52b3-4102-aeff-aad2292ab01c",
38+
"delegatedPermissionIds": [
39+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
40+
]
41+
},
42+
{
43+
"appId": "00000002-0000-0ff1-ce00-000000000000",
44+
"delegatedPermissionIds": [
45+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
46+
]
47+
},
48+
{
49+
"appId": "bc59ab01-8403-45c6-8796-ac3ef710b3e3",
50+
"delegatedPermissionIds": [
51+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
52+
]
53+
},
54+
{
55+
"appId": "0ec893e0-5785-4de6-99da-4ed124e5296c",
56+
"delegatedPermissionIds": [
57+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
58+
]
59+
},
60+
{
61+
"appId": "4765445b-32c6-49b0-83e6-1d93765276ca",
62+
"delegatedPermissionIds": [
63+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
64+
]
65+
},
66+
{
67+
"appId": "4345a7b9-9a63-4910-a426-35363201d503",
68+
"delegatedPermissionIds": [
69+
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
70+
]
71+
},
72+
{
73+
"appId": "27922004-5251-4030-b22d-91ecd9a37ea4",
74+
"delegatedPermissionIds": [
75+
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}"
76+
]
77+
}
78+
]
79+
},
80+
"info": {},
81+
"optionalClaims": {
82+
"idToken": [],
83+
"accessToken": [
84+
{
85+
"name": "idtyp",
86+
"source": null,
87+
"essential": false,
88+
"additionalProperties": []
89+
}
90+
],
91+
"saml2Token": []
92+
},
93+
"publicClient": {
94+
"redirectUris": []
95+
},
96+
"requiredResourceAccess": [
97+
{
98+
"resourceAppId": "Microsoft Graph",
99+
"resourceAccess": [
43100
{
44-
"appId": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
45-
"permissionIds": [
46-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
47-
]
48-
},
49-
{
50-
"appId": "5e3ce6c0-2b1f-4285-8d4b-75ee78787346",
51-
"permissionIds": [
52-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
53-
]
54-
},
55-
{
56-
"appId": "d3590ed6-52b3-4102-aeff-aad2292ab01c",
57-
"permissionIds": [
58-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
59-
]
60-
},
61-
{
62-
"appId": "00000002-0000-0ff1-ce00-000000000000",
63-
"permissionIds": [
64-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
65-
]
66-
},
67-
{
68-
"appId": "bc59ab01-8403-45c6-8796-ac3ef710b3e3",
69-
"permissionIds": [
70-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
71-
]
72-
},
73-
{
74-
"appId": "0ec893e0-5785-4de6-99da-4ed124e5296c",
75-
"permissionIds": [
76-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
77-
]
78-
},
79-
{
80-
"appId": "4765445b-32c6-49b0-83e6-1d93765276ca",
81-
"permissionIds": [
82-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
83-
]
84-
},
85-
{
86-
"appId": "4345a7b9-9a63-4910-a426-35363201d503",
87-
"permissionIds": [
88-
"{{state.fx-resource-aad-app-for-teams.oauth2PermissionScopeId}}"
89-
]
90-
},
91-
{
92-
"appId": "27922004-5251-4030-b22d-91ecd9a37ea4",
93-
"permissionIds": [
94-
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}"
95-
]
101+
"id": "User.Read",
102+
"type": "Scope"
96103
}
97-
],
98-
"identifierUris": [
99-
"{{state.fx-resource-aad-app-for-teams.applicationIdUris}}"
100-
],
101-
"replyUrlsWithType": []
102-
}
104+
]
105+
}
106+
],
107+
"web": {
108+
"redirectUris": [],
109+
"implicitGrantSettings": {}
110+
},
111+
"spa": {
112+
"redirectUris": []
113+
}
114+
}

0 commit comments

Comments
 (0)