diff --git a/docs/Authentication.md b/docs/Authentication.md index e8bc217..908873e 100644 --- a/docs/Authentication.md +++ b/docs/Authentication.md @@ -142,6 +142,7 @@ work. } ] } +} ``` ## Other Authentication Options @@ -161,8 +162,12 @@ builder.Services.AddMultiTenant() .WithRouteStrategy() .WithPerTenantAuthentication() -// WithPerTenantAuthentication, as shown above, is needed for this to work as intended -builder.Services.ConfigurePerTenant((options, tenantInfo) => +// WithPerTenantAuthentication, as shown above, is needed for this to work as intended. +// Note the default JwtBearer authentication scheme is used for the options name per AspNetCore defauls, +// but you can use a custom authentication scheme name to scope the options or use ConfigureAllPerTenant +// to impact all authentication schemes. +builder.Services.ConfigurePerTenant(JwtBearerDefaults.AuthenticationScheme, (options, +tenantInfo) => { // assume tenants are configured with an authority string to use here. options.Authority = tenantInfo.JwtAuthority;