#### [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')

## RefreshTokenReusePolicyCheck Class

Refuses a tenant declaring a client whose refresh token reuse policy is not one of the values the policy defines,
and warns of a client whose Reuse the rotation policy does not follow for every token\.

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

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

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

### Remarks
A configuration binder takes a number outside the defined values as it stands, so the client would pass startup
and fail the first token request that issues it a refresh token\. Reuse for a public client not requiring DPoP is
served, but its tokens bound to no key rotate \(RFC 9700 section 2\.2\.2\), so the host is told rather than left to
believe they are reused\. The settings are validated again for every request scope and a tenant store is read
again every period, so a client is warned of once, and again only after its setting stopped calling for it\.
### Constructors

## RefreshTokenReusePolicyCheck\(ILogger\<RefreshTokenReusePolicyCheck\>\) Constructor {#Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicyCheck.RefreshTokenReusePolicyCheck(Microsoft.Extensions.Logging.ILogger_Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicyCheck_)}

Refuses a tenant declaring a client whose refresh token reuse policy is not one of the values the policy defines,
and warns of a client whose Reuse the rotation policy does not follow for every token\.

```csharp
public RefreshTokenReusePolicyCheck(Microsoft.Extensions.Logging.ILogger<Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicyCheck> logger);
```
#### Parameters

###### `logger` [Microsoft\.Extensions\.Logging\.ILogger&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger-1 'Microsoft\.Extensions\.Logging\.ILogger\`1')[RefreshTokenReusePolicyCheck](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicyCheck 'Abblix\.Oidc\.Server\.Common\.Configuration\.RefreshTokenReusePolicyCheck')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger-1 'Microsoft\.Extensions\.Logging\.ILogger\`1') {#Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicyCheck.RefreshTokenReusePolicyCheck(Microsoft.Extensions.Logging.ILogger_Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicyCheck_).logger}

Records each client whose Reuse is not followed for every token\.

### Remarks
A configuration binder takes a number outside the defined values as it stands, so the client would pass startup
and fail the first token request that issues it a refresh token\. Reuse for a public client not requiring DPoP is
served, but its tokens bound to no key rotate \(RFC 9700 section 2\.2\.2\), so the host is told rather than left to
believe they are reused\. The settings are validated again for every request scope and a tenant store is read
again every period, so a client is warned of once, and again only after its setting stopped calling for it\.
### Methods

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