TenantKeysCheck Class
Refuses a tenant declaring keys the library's key provider never reads; with the keys coming from each tenant's settings, a tenant declaring no signing key, a key lacking a member its type requires, or a key another tenant declares; and, with the keys held by a custodian, whether or not a key provider of the host's own stands in front of the library's, a tenant naming no key there or one another tenant names.
public sealed class TenantKeysCheck : Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheckInheritance System.Object → TenantKeysCheck
Implements ITenantsCheck
Constructors
TenantKeysCheck(IServiceProvider) Constructor
Refuses a tenant declaring keys the library's key provider never reads; with the keys coming from each tenant's settings, a tenant declaring no signing key, a key lacking a member its type requires, or a key another tenant declares; and, with the keys held by a custodian, whether or not a key provider of the host's own stands in front of the library's, a tenant naming no key there or one another tenant names.
public TenantKeysCheck(System.IServiceProvider serviceProvider);Parameters
serviceProvider System.IServiceProvider
Tells which key provider serves the keys, and resolves the custodian.
Methods
TenantKeysCheck.Check(IReadOnlyCollection<TenantDefinition>, OidcOptions) Method
What is wrong with tenants, judged as the whole list the server would serve with the server's own settings options.
public System.Collections.Generic.IEnumerable<Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal> Check(System.Collections.Generic.IReadOnlyCollection<Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition> tenants, Abblix.Oidc.Server.Common.Configuration.OidcOptions options);Parameters
tenants System.Collections.Generic.IReadOnlyCollection<TenantDefinition>
options OidcOptions
Implements Check(IReadOnlyCollection<TenantDefinition>, OidcOptions)
Returns
System.Collections.Generic.IEnumerable<TenantRefusal>
Remarks
The server's settings are handed in rather than read from the options pipeline, since the list the settings declare is judged while those very settings are being validated.