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

## AuthenticationFailureLimitOptions Class

How many client authentications may fail from one source address within a window before this server stops
trying to authenticate callers from it, at every endpoint that authenticates a client\.

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

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

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

### Remarks
The budget one client gets cannot cover this: it is charged once the caller has proven which client it is,
and a sender whose credentials never verify never reaches it while still costing a signature verification
per attempt\. The source address is the only thing such a sender cannot choose\.

Nothing successful is counted, so what the number has to clear is a deployment's own noise - a rotated
secret, a clock skew, a misconfigured instance retrying - which is why it is stated per minute.

It is OFF until a deployment turns it on. A server whose callers reach it through a load balancer, an
ingress or a NAT gateway sees one address for all of them, and this budget is then one bucket for the whole
deployment, which anybody could spend with a hundred wrong secrets a minute. Turning it on states that this
server sees the addresses its callers come from: it terminates their connections itself, or its proxy is
trusted to say so and nobody else is.

A sender that rotates addresses is not bounded by it, and one that can choose the address this server sees
can both evade it and spend somebody else's budget.
### Properties

## AuthenticationFailureLimitOptions\.PermitLimit Property {#Abblix.Oidc.Server.Common.Configuration.AuthenticationFailureLimitOptions.PermitLimit}

How many authentications may fail from one address within [Window](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.AuthenticationFailureLimitOptions#Abblix.Oidc.Server.Common.Configuration.AuthenticationFailureLimitOptions.Window 'Abblix\.Oidc\.Server\.Common\.Configuration\.AuthenticationFailureLimitOptions\.Window')\. Null, the default,
counts nothing and every request has its credentials looked at however many have failed \- unless the
host registered a limiter of its own for this, which decides instead of these numbers\.

```csharp
public System.Nullable<int> PermitLimit { get; set; }
```

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.Int32](https://learn.microsoft.com/en-us/dotnet/api/system.int32 'System\.Int32')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')

### Remarks
Counted inside one instance of this server, like every other budget here, so a deployment running
several multiplies it, and the number is read once when the limiter is first needed rather than on a
configuration reload\.

## AuthenticationFailureLimitOptions\.Window Property {#Abblix.Oidc.Server.Common.Configuration.AuthenticationFailureLimitOptions.Window}

The window failures are counted over\. A minute by default, long enough that a deployment's own noise
does not look like an attack and short enough that a source refused by mistake is not refused for long\.

```csharp
public System.TimeSpan Window { get; set; }
```

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