#### [Abblix\.Oidc\.Server](https://www.abblix.com/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.MultiTenancy](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy 'Abblix\.Oidc\.Server\.Features\.MultiTenancy')

## ITenantsCheck Interface

Judges a list of tenants, whichever way it arrives: the tenants the settings declare at startup, and the list
a change would leave\.

```csharp
public interface ITenantsCheck
```

Derived  
↳ [ClientAssertionAudiencesCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ClientAssertionAudiencesCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ClientAssertionAudiencesCheck')  
↳ [ClientIdsCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ClientIdsCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ClientIdsCheck')  
↳ [ClientOfflineAccessCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ClientOfflineAccessCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ClientOfflineAccessCheck')  
↳ [ClientSecretsCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ClientSecretsCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ClientSecretsCheck')  
↳ [ClockSkewCeilingCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ClockSkewCeilingCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ClockSkewCeilingCheck')  
↳ [CrossClientSubjectTokenExchangeCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.CrossClientSubjectTokenExchangeCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.CrossClientSubjectTokenExchangeCheck')  
↳ [DefaultResourceIndicatorCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.DefaultResourceIndicatorCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.DefaultResourceIndicatorCheck')  
↳ [ProfileServiceTokensCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ProfileServiceTokensCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ProfileServiceTokensCheck')  
↳ [ProfileSigningKeysCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ProfileSigningKeysCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ProfileSigningKeysCheck')  
↳ [RefreshTokenReusePolicyCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicyCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.RefreshTokenReusePolicyCheck')  
↳ [ResourceDefinitionsCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ResourceDefinitionsCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ResourceDefinitionsCheck')  
↳ [ServiceTokenEncryptionKeysCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ServiceTokenEncryptionKeysCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.ServiceTokenEncryptionKeysCheck')  
↳ [SecurityProfileCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileCheck 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileCheck')  
↳ [TenantDefinitionsCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinitionsCheck 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinitionsCheck')  
↳ [TenantKeysCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantKeysCheck 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantKeysCheck')  
↳ [PairwiseClientsCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.PairwiseIdentifiers.PairwiseClientsCheck 'Abblix\.Oidc\.Server\.Features\.PairwiseIdentifiers\.PairwiseClientsCheck')

### Remarks
It names the tenants each refusal is about, so whoever asks can decide what a refusal costs: the settings
refuse to start, while a list read from a store leaves the refused tenants out\.

A list read from a store is judged at every reading, so a check runs once a period. One that throws instead of
refusing fails the whole reading, and the server keeps serving the tenants it read last.

A check is handed only tenants holding a value wherever their types declare one: a tenant with a null there - a
member, or an element of a collection, whose nullable annotation rules it out - is refused for it, and handed to
the checks with the null mended so that it still claims its address and keys against the others; a check reads
the definition as declared and guards against no such null.

The checks are built while the server's settings are validated, so a check asking a service that takes those
settings resolves it when it judges a list rather than holding it from construction.
### Methods

## ITenantsCheck\.Check\(IReadOnlyCollection\<TenantDefinition\>, OidcOptions\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions)}

What is wrong with [tenants](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck#Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions).tenants 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.ITenantsCheck\.Check\(System\.Collections\.Generic\.IReadOnlyCollection\<Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition\>, Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\)\.tenants'), judged as the whole list the server would serve with the
server's own settings [options](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck#Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions).options 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.ITenantsCheck\.Check\(System\.Collections\.Generic\.IReadOnlyCollection\<Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition\>, Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\)\.options')\.

```csharp
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&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1')[TenantDefinition](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1') {#Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions).tenants}

###### `options` [OidcOptions](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions') {#Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions).options}

#### Returns
[System\.Collections\.Generic\.IEnumerable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 'System\.Collections\.Generic\.IEnumerable\`1')[TenantRefusal](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantRefusal')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 'System\.Collections\.Generic\.IEnumerable\`1')

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