Skip to content

Commit

Permalink
chore: update authentication docs file
Browse files Browse the repository at this point in the history
Corrections to the code examples in "Other Authentication Options" sections.
  • Loading branch information
roos-robert authored May 13, 2024
1 parent 900cd52 commit fd394ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/Authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ builder.Services.AddMultiTenant<TenantInfo>()
.WithPerTenantAuthentication()

// WithPerTenantAuthentication, as shown above, is needed for this to work as intended
builder.Services.ConfigurePerTenant<JwtBearerOptions, Tenantnfo>((options, tenantInfo) =>
builder.Services.ConfigurePerTenant<JwtBearerOptions, TenantInfo>((options, tenantInfo) =>
{
// assume tenants are configured with an authority string to use here.
options.Authority = tenantInfo.JwtAuthority;
Expand All @@ -186,8 +186,8 @@ builder.Services.AddMultiTenant<TenantInfo>()
.WithPerTenantAuthentication()

// WithPerTenantAuthentication, as shown above, is needed for this to work as intended
builder.Services.ConfigurePerTenant<CookieAuthenticationOptions, Tenantnfo>((options, tenantInfo) =>
{
o.Cookie.Name = "SignInCookie-" + tenantInfo.Id;
}
builder.Services.ConfigurePerTenant<CookieAuthenticationOptions, TenantInfo>((options, tenantInfo) =>
{
options.Cookie.Name = "SignInCookie-" + tenantInfo.Id;
});
```

0 comments on commit fd394ba

Please sign in to comment.