File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/content/docs/identityserver/quickstarts Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,12 @@ 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 ()
558
+ builder .Services .AddAuthentication (options =>
559
+ {
560
+ options .DefaultScheme = " Cookies" ;
561
+ options .DefaultChallengeScheme = " oidc" ;
562
+ })
563
+ .AddCookie (" Cookies" )
559
564
.AddOpenIdConnect (" oidc" , " Sign-in with demo.duendesoftware.com" , options =>
560
565
{
561
566
options .SignInScheme = IdentityServerConstants .ExternalCookieAuthenticationScheme ;
@@ -656,4 +661,4 @@ claims sourced from Google's data.
656
661
The Google button is rendered by the login page automatically when there are external providers registered as
657
662
authentication schemes . See the `BuildModelAsync ` method in `src /IdentityServer /Pages /Account /Login /Index .cshtml .cs ` and
658
663
the corresponding Razor template for more details .
659
- :::
664
+ :::
You can’t perform that action at this time.
0 commit comments