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
Copy file name to clipboardExpand all lines: 2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/README.md
+81-71Lines changed: 81 additions & 71 deletions
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,13 @@ Go to the `"2-WebApp-graph-user\2-4-Sovereign-Call-MSGraph"` folder
64
64
- the `TenantId` by `organizations`, as here you chose to sign-in users with their work or school account. In case you want to sign-in different audiences, refer back to the first phase of the tutorial
65
65
- and the `ClientSecret` by the client secret you generated in Step 1.
66
66
67
-
- The `GraphApiUrl` for US Government cloud is
67
+
- The `DownstreamApi:BaseUrl` for US Government cloud is
68
68
69
-
```JSon
70
-
"GraphApiUrl": "https://graph.microsoft.us"
71
-
```
69
+
```JSon
70
+
"DownstreamApi": {
71
+
"BaseUrl": "https://graph.microsoft.us/beta"
72
+
}
73
+
```
72
74
In case you want to deploy your app in other sovereign or national clouds, go to [Microsoft Graph service root endpoints](https://docs.microsoft.com/en-us/graph/deployments#microsoft-graph-and-graph-explorer-service-root-endpoints).
73
75
74
76
### Step 3: Run the sample
@@ -92,42 +94,35 @@ Starting from the [previous phase of the tutorial](../../1-WebApp-OIDC), the cod
92
94
After the following lines in the ConfigureServices(IServiceCollection services) method, replace `services.AddAzureAdV2Authentication(Configuration);`, by the following lines:
-Decidewhichtokencacheimplementationtouse. Inthispartofthephase, we'll use a simple in memory token cache, but next steps will show you other implementations you can benefit from, including distributed token caches based on a SQL database, or a Redis cache.
111
117
112
-
### Add additional files to call Microsoft Graph
113
-
114
-
Addthe `Services\Microsoft-Graph-Rest\*.cs` files. Thisisanimplementationofacustomservice, whichencapsulatesthecalltotheMicrosoftGraph/meendpoint. GivenanaccesstokenforMicrosoftGraph, it's capable of getting the user information and the photo of the user.
0 commit comments