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

## ProfileServiceTokensCheck Class

Refuses a tenant where a security profile bounding the signature algorithms is in force \- its default, or one a
client it declares names \- while a token this server signs for itself uses an algorithm that profile does not
admit, or is encrypted with one it forbids\.

```csharp
public sealed class ProfileServiceTokensCheck : Abblix.Oidc.Server.Features.MultiTenancy.ITenantsCheck
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → ProfileServiceTokensCheck

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

### Remarks
FAPI 1\.0 Part 2 section 8\.6: "For JWS, both clients and authorization servers shall use PS256 or ES256 algorithms",
and section 8\.6\.1 forbids RSA1\_5 for any JWE; FAPI 2\.0 section 5\.4\.1 has the server use PS256, ES256 or EdDSA "when
creating or processing JWTs"\. Access, refresh, registration access and initial access tokens take the algorithm the
deployment configures for each, not a client's, so the only place to hold them to the profile is the deployment's
configuration, judged here before the first one is issued\.
### Methods

## ProfileServiceTokensCheck\.Check\(IReadOnlyCollection\<TenantDefinition\>, OidcOptions\) Method {#Abblix.Oidc.Server.Common.Configuration.ProfileServiceTokensCheck.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.Common.Configuration.ProfileServiceTokensCheck#Abblix.Oidc.Server.Common.Configuration.ProfileServiceTokensCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions).tenants 'Abblix\.Oidc\.Server\.Common\.Configuration\.ProfileServiceTokensCheck\.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.Common.Configuration.ProfileServiceTokensCheck#Abblix.Oidc.Server.Common.Configuration.ProfileServiceTokensCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions).options 'Abblix\.Oidc\.Server\.Common\.Configuration\.ProfileServiceTokensCheck\.Check\(System\.Collections\.Generic\.IReadOnlyCollection\<Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition\>, Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\)\.options')\.

```csharp
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&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.Common.Configuration.ProfileServiceTokensCheck.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.Common.Configuration.ProfileServiceTokensCheck.Check(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,Abblix.Oidc.Server.Common.Configuration.OidcOptions).options}

Implements [Check\(IReadOnlyCollection&lt;TenantDefinition&gt;, OidcOptions\)](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) 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.ITenantsCheck\.Check\(System\.Collections\.Generic\.IReadOnlyCollection\<Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition\>, Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\)')

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