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

## ClientSecretOptions Class

Configuration options for generating client secrets in OAuth2/OpenID Connect authentication\.

```csharp
public record ClientSecretOptions : System.IEquatable<Abblix.Oidc.Server.Common.Configuration.ClientSecretOptions>
```

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

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[ClientSecretOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.ClientSecretOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.ClientSecretOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')
### Properties

## ClientSecretOptions\.ExpiresAfter Property {#Abblix.Oidc.Server.Common.Configuration.ClientSecretOptions.ExpiresAfter}

The expiration duration for the client secret\.
Defines how long after creation the secret will remain valid\.
Default value is 30 days\.

```csharp
public System.TimeSpan ExpiresAfter { get; init; }
```

#### Property Value
[System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan')

## ClientSecretOptions\.Length Property {#Abblix.Oidc.Server.Common.Configuration.ClientSecretOptions.Length}

The length of the generated client secret\.
Specifies the number of characters in the secret\. Default value is 16\.

```csharp
public int Length { get; init; }
```

#### Property Value
[System\.Int32](https://learn.microsoft.com/en-us/dotnet/api/system.int32 'System\.Int32')
