You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update use-aadhttpclient-enterpriseapi.md to match behavior of new Azure portal, behavior of yeoman generator to match tutorial story which does not request that web part is deployed to site before usage.
Copy file name to clipboardExpand all lines: docs/spfx/use-aadhttpclient-enterpriseapi.md
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -26,18 +26,13 @@ In the Function App, you will create a new HTTP-triggered function. In this exam
26
26
27
27
In the Function App, press the **New Function** button:
28
28
29
-
30
29

31
30
32
-
Next, click the **Custom function** link to create a custom HTTP-triggered function:
33
-
34
-

35
-
36
31
From the list of templates, choose **HTTP trigger**:
37
32
38
33

39
34
40
-
In the New Function panel, choose **C#** as the language, specify the function name, set the **Authorization level** to **Anonymous**, and click the **Create** button:
35
+
In the New Function panel, specify the function name, set the **Authorization level** to **Anonymous**, and click the **Create** button:
41
36
42
37

43
38
@@ -46,13 +41,20 @@ In the New Function panel, choose **C#** as the language, specify the function n
46
41
Once the function is created, replace its contents with the following snippet:
Verify that the function is working correctly, by pressing the **Save and run** button:
@@ -230,7 +233,7 @@ When prompted, use the following values:
230
233
-**What is your solution name?** contoso-api
231
234
-**Which baseline packages do you want to target for your component(s)?** SharePoint Online only (latest)
232
235
-**Where do you want to place the files?** Use the current folder
233
-
-**Do you want to allow the tenant admin the choice of being able to deploy the solution to all sites immediately without running any feature deployment or adding apps in sites?**No
236
+
-**Do you want to allow the tenant admin the choice of being able to deploy the solution to all sites immediately without running any feature deployment or adding apps in sites?**Yes
234
237
-**Will the components in the solution require permissions to access web APIs that are unique and not shared with other components in the tenant?** No
235
238
-**Which type of client-side component to create?** WebPart
236
239
-**What is your Web part name?** Orders
@@ -260,9 +263,10 @@ In the **solution** property, add a new property named `webApiPermissionRequests
260
263
"version": "1.0.0.0",
261
264
"includeClientSideAssets": true,
262
265
"skipFeatureDeployment": true,
266
+
"isDomainIsolated": false,
263
267
"webApiPermissionRequests": [
264
268
{
265
-
"resource": "contoso-api",
269
+
"resource": "contoso-api-dp20191109",
266
270
"scope": "user_impersonation"
267
271
}
268
272
]
@@ -311,7 +315,7 @@ export default class OrdersWebPart extends BaseClientSideWebPart<IOrdersWebPartP
0 commit comments