Skip to content

Commit f05c369

Browse files
authored
Merge pull request #768 from DuendeSoftware/maartenba-patch-1
Update 2-interactive.md
2 parents 78636fa + b5177f5 commit f05c369

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/content/docs/identityserver/quickstarts/2-interactive.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,12 @@ Register and configure the services for the OpenId Connect handler in`src/Identi
555555

556556
```cs
557557
// HostingExtensions.cs
558-
builder.Services.AddAuthentication()
558+
builder.Services.AddAuthentication(options =>
559+
{
560+
options.DefaultScheme = "Cookies";
561+
options.DefaultChallengeScheme = "oidc";
562+
})
563+
.AddCookie("Cookies")
559564
.AddOpenIdConnect("oidc", "Sign-in with demo.duendesoftware.com", options =>
560565
{
561566
options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme;
@@ -656,4 +661,4 @@ claims sourced from Google's data.
656661
The Google button is rendered by the login page automatically when there are external providers registered as
657662
authentication schemes. See the `BuildModelAsync` method in `src/IdentityServer/Pages/Account/Login/Index.cshtml.cs` and
658663
the corresponding Razor template for more details.
659-
:::
664+
:::

0 commit comments

Comments
 (0)