From a221f315e3a20cfc8e8711668a79348361354890 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Sun, 18 Aug 2024 12:25:30 -0600 Subject: [PATCH] chore: docs fix (#872) --- docs/Authentication.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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;