ClientSecretsCheck Class
Refuses a tenant declaring a client that cannot authenticate with the secret it appears to carry, instead of
answering invalid_client to every request it ever makes.
public sealed class ClientSecretsCheck : Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheckInheritance System.Object → ClientSecretsCheck
Implements ITenantsCheck
Remarks
A registry kept in configuration makes a mistyped hash easy and its consequences invisible. The .NET configuration binder discards an element whose binding threw, so a hash the file spells wrongly leaves the client with no secret at all rather than with a bad one, and nothing downstream distinguishes that from a client deliberately registered without secrets: the token endpoint simply refuses it, logging at debug level. A hash of the wrong length is the same mistake caught one step later - a digest pasted into the wrong notation decodes without error and compares against nothing.
Methods
ClientSecretsCheck.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.