Skip to content

CrossClientSubjectTokenExchangeCheck Class

Refuses a tenant declaring a client whose cross-client subject token exchange setting is none of the values the enumeration names, that is AddressedToClient while the client names no location of its own, or whose locations name the tenant's issuer.

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

Inheritance System.Object → CrossClientSubjectTokenExchangeCheck

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 token exchange of that client, on the request, with an error that names neither the client nor the setting. A client exchanging tokens addressed to it with no location of its own exchanges none, which is a configuration mistake rather than a policy. The issuer is the audience of every access token whose request named no resource, so a client naming it as its location would be the resource server of all of them.

Methods

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