Skip to content

ITenantOpening Interface

Readies what a tenant needs before the server first serves it, as the first key it signs with.

C#
public interface ITenantOpening

Derived
↳ TenantKeyRingOpening

Remarks

The catalog hands over the tenants of one reading it has not served before, after the checks pass them, and serves each once it is readied, so its first request finds what was readied. A tenant not readied is left out of that reading and logged, and handed over again at the next one; a tenant the settings declare that is not readied on the reading the server starts with refuses the start. The openings of one reading share one refresh period, and the token is canceled when it runs out, except on that reading for the tenants the settings declare, since the start waits for all of them.

Methods

ITenantOpening.OpenAsync(IReadOnlyCollection<TenantDefinition>, CancellationToken) Method

Readies tenants to be served, each one on its own, so one that fails leaves the others ready.

C#
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,System.Exception>> OpenAsync(System.Collections.Generic.IReadOnlyCollection<Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition> tenants, System.Threading.CancellationToken cancellationToken);

Parameters

tenants System.Collections.Generic.IReadOnlyCollection<TenantDefinition>

The tenants about to be served for the first time.

cancellationToken System.Threading.CancellationToken

Cancels the opening.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<System.String,System.Exception>>
Why each tenant that could not be readied was not, by its id; the others are ready.