File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
2-WebApp-graph-user/2-1-Call-MSGraph Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ using Azure.Security.KeyVault.Secrets;
409
409
``` CSharp
410
410
// uncomment the following 3 lines to get ClientSecret from KeyVault
411
411
string tenantId = Configuration .GetValue <string >(" AzureAd:TenantId" );
412
- services .Configure <MicrosoftIdentityOptions >(
412
+ services .Configure <MicrosoftIdentityOptions >(OpenIdConnectDefaults . AuthenticationScheme ,
413
413
options => { options .ClientSecret = GetSecretFromKeyVault (tenantId , " ENTER_YOUR_SECRET_NAME_HERE" ); });
414
414
```
415
415
@@ -428,7 +428,7 @@ using Azure.Security.KeyVault.Secrets;
428
428
429
429
// uncomment the following 3 lines to get ClientSecret from KeyVault
430
430
string tenantId = Configuration .GetValue <string >(" AzureAd:TenantId" );
431
- services .Configure <MicrosoftIdentityOptions >(
431
+ services .Configure <MicrosoftIdentityOptions >(OpenIdConnectDefaults . AuthenticationScheme ,
432
432
options => { options .ClientSecret = GetSecretFromKeyVault (tenantId , " myClientSecret" ); });
433
433
434
434
// ... more method code continues below
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ using Azure.Security.KeyVault.Secrets;
140
140
``` CSharp
141
141
// uncomment the following 3 lines to get ClientSecret from KeyVault
142
142
string tenantId = Configuration .GetValue <string >(" AzureAd:TenantId" );
143
- services .Configure <MicrosoftIdentityOptions >(
143
+ services .Configure <MicrosoftIdentityOptions >(OpenIdConnectDefaults . AuthenticationScheme ,
144
144
options => { options .ClientSecret = GetSecretFromKeyVault (tenantId , " ENTER_YOUR_SECRET_NAME_HERE" ); });
145
145
```
146
146
@@ -159,7 +159,7 @@ using Azure.Security.KeyVault.Secrets;
159
159
160
160
// uncomment the following 3 lines to get ClientSecret from KeyVault
161
161
string tenantId = Configuration .GetValue <string >(" AzureAd:TenantId" );
162
- services .Configure <MicrosoftIdentityOptions >(
162
+ services .Configure <MicrosoftIdentityOptions >(OpenIdConnectDefaults . AuthenticationScheme ,
163
163
options => { options .ClientSecret = GetSecretFromKeyVault (tenantId , " myClientSecret" ); });
164
164
165
165
// ... more method code continues below
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public void ConfigureServices(IServiceCollection services)
37
37
38
38
// uncomment the following 3 lines to get ClientSecret from KeyVault
39
39
//string tenantId = Configuration.GetValue<string>("AzureAd:TenantId");
40
- //services.Configure<MicrosoftIdentityOptions>(
40
+ //services.Configure<MicrosoftIdentityOptions>(OpenIdConnectDefaults.AuthenticationScheme,
41
41
// options => { options.ClientSecret = GetSecretFromKeyVault(tenantId, "ENTER_YOUR_SECRET_NAME_HERE"); });
42
42
43
43
services . AddControllersWithViews ( options =>
You can’t perform that action at this time.
0 commit comments