File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/content/docs/identityserver/quickstarts Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -555,12 +555,7 @@ Register and configure the services for the OpenId Connect handler in`src/Identi
555
555
556
556
```cs
557
557
// HostingExtensions.cs
558
- builder .Services .AddAuthentication (options =>
559
- {
560
- options .DefaultScheme = " Cookies" ;
561
- options .DefaultChallengeScheme = " oidc" ;
562
- })
563
- .AddCookie (" Cookies" )
558
+ builder .Services .AddAuthentication ()
564
559
.AddOpenIdConnect (" oidc" , " Sign-in with demo.duendesoftware.com" , options =>
565
560
{
566
561
options .SignInScheme = IdentityServerConstants .ExternalCookieAuthenticationScheme ;
@@ -622,7 +617,7 @@ IdentityServer specific option.
622
617
Add the following to `ConfigureServices ` in `src / IdentityServer / HostingExtensions .cs `:
623
618
624
619
```cs
625
- // Program .cs
620
+ // HostingExtensions .cs
626
621
builder .Services .AddAuthentication ()
627
622
.AddGoogleOpenIdConnect (
628
623
authenticationScheme : GoogleOpenIdConnectDefaults .AuthenticationScheme ,
@@ -631,8 +626,8 @@ builder.Services.AddAuthentication()
631
626
{
632
627
options .SignInScheme = IdentityServerConstants .ExternalCookieAuthenticationScheme ;
633
628
634
- options .ClientId = " " builder .Configuration [" Authentication:Google:ClientId" ];
635
- options .ClientSecret = " " builder .Configuration [" Authentication:Google:ClientSecret" ];
629
+ options .ClientId = builder .Configuration [" Authentication:Google:ClientId" ];
630
+ options .ClientSecret = builder .Configuration [" Authentication:Google:ClientSecret" ];
636
631
});
637
632
```
638
633
You can’t perform that action at this time.
0 commit comments