Skip to content

TenantKeyRingOpening Class

Opens the part of the key ring each tenant signs with when the server mints its keys, minting its first key, so a tenant the store gains while the server runs has a key from its first request.

C#
public sealed class TenantKeyRingOpening : Abblix.Oidc.Server.Features.MultiTenancy.ITenantOpening

Inheritance System.Object → TenantKeyRingOpening

Implements ITenantOpening

Remarks

Which keys the server signs with is decided where the host places them, so it is read when tenants are opened rather than at registration; keys from the settings or a custodian need no opening.

Constructors

TenantKeyRingOpening(IServiceProvider) Constructor

Opens the part of the key ring each tenant signs with when the server mints its keys, minting its first key, so a tenant the store gains while the server runs has a key from its first request.

C#
public TenantKeyRingOpening(System.IServiceProvider serviceProvider);

Parameters

serviceProvider System.IServiceProvider

Remarks

Which keys the server signs with is decided where the host places them, so it is read when tenants are opened rather than at registration; keys from the settings or a custodian need no opening.

Methods

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

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

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

Implements OpenAsync(IReadOnlyCollection<TenantDefinition>, CancellationToken)

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.