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

## RefreshTokenReusePolicy Enum

When a refresh token may be redeemed repeatedly until it expires, rather than rotated on each refresh\.

```csharp
public enum RefreshTokenReusePolicy
```
### Fields

###### `WhenSenderConstrained` 0 {#Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicy.WhenSenderConstrained}

Refresh tokens are reused only by a client that authenticates by certificate \(`tls_client_auth`,
`self_signed_tls_client_auth`\) and has its tokens bound to it or requires DPoP, or with
`private_key_jwt` while requiring DPoP, and that receives its access tokens only from the token endpoint\.
Every other client rotates them\.

### Remarks
Rotation adds nothing for a confidential client whose access tokens are sender\-constrained, and costs a client
that fails to store a rotated token its session \(FAPI 2\.0 Security Profile section 5\.3\.2\.1, note 1\)\. The
binding is required on every token request, not merely allowed: a certificate authenticates each request and
binds its token for a client registered for certificate\-bound access tokens \(RFC 8705 section 3\.4\) or held to a
profile issuing no other, and a client requiring DPoP is refused without a proof\. Tokens that reach the client by
another way carry no binding, since no certificate or proof accompanies them: those delivered by CIBA push,
and an access token returned from the authorization endpoint for a response type that includes
`token`\. So a client registered for either rotates, as does a certificate client whose tokens nothing binds,
since authenticating by certificate binds no token by itself, a `private_key_jwt` client whose
certificate binding is optional, since a request made without a certificate gets an unbound token, and a
client authenticating with a shared secret, whose tokens are bound to no key at all\.

###### `Reuse` 1 {#Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicy.Reuse}

The client keeps redeeming its refresh tokens, bound to it by its client authentication alone
\(RFC 6749 section 6\)\.

### Remarks
A public client's refresh token that no DPoP key binds rotates all the same \(RFC 9700 section 2\.2\.2\), and a
warning is logged for a public client declared with Reuse that does not require DPoP\.

###### `Rotate` 2 {#Abblix.Oidc.Server.Common.Configuration.RefreshTokenReusePolicy.Rotate}

Each refresh rotates the token: the previous value is marked superseded as soon as a new one is issued, and a
later presentation of a superseded token revokes the whole grant \(RFC 9700 section 4\.14\.2\)\.
