Skip to content

Commit c0c4724

Browse files
authored
Merge pull request #780 from DuendeSoftware/maartenba-patch-1
Update 2-interactive.md
2 parents 58ddb21 + a17692b commit c0c4724

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

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

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

556556
```cs
557557
// HostingExtensions.cs
558-
builder.Services.AddAuthentication(options =>
559-
{
560-
options.DefaultScheme = "Cookies";
561-
options.DefaultChallengeScheme = "oidc";
562-
})
563-
.AddCookie("Cookies")
558+
builder.Services.AddAuthentication()
564559
.AddOpenIdConnect("oidc", "Sign-in with demo.duendesoftware.com", options =>
565560
{
566561
options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme;
@@ -622,7 +617,7 @@ IdentityServer specific option.
622617
Add the following to `ConfigureServices` in `src/IdentityServer/HostingExtensions.cs`:
623618

624619
```cs
625-
// Program.cs
620+
// HostingExtensions.cs
626621
builder.Services.AddAuthentication()
627622
.AddGoogleOpenIdConnect(
628623
authenticationScheme: GoogleOpenIdConnectDefaults.AuthenticationScheme,
@@ -631,8 +626,8 @@ builder.Services.AddAuthentication()
631626
{
632627
options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme;
633628

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"];
636631
});
637632
```
638633

0 commit comments

Comments
 (0)