Skip to content

ClientOfflineAccessCheck Class

Refuses a tenant declaring a client whose offline access is none of the values the enumeration names.

C#
public sealed class ClientOfflineAccessCheck : Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck

Inheritance System.Object → ClientOfflineAccessCheck

Implements ITenantsCheck

Remarks

Configuration binds a number to an enumeration whatever its value, so a mistyped one would otherwise reach the server and fail every request of that client, on the request, with an error that names neither the client nor the setting.

Methods

ClientOfflineAccessCheck.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.

C#
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.