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

## CallerRateLimitOptions Class

How many requests one authenticated caller may make to the introspection and revocation endpoints within a
window before the endpoint refuses with 429 instead of reading the token it was sent\.

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

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

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

### Remarks
The budget is per client and per endpoint: a resource server that starts looping does not spend the budget of
the next one, and a flood of introspection calls leaves revocation answering\. A public client proves nothing,
its `client_id` being there for anyone to copy, so introspection turns it away outright and revocation
counts it by that identifier paired with the address the request came from\.

That pairing is worth only what an address is worth where this server runs. Behind a load balancer, an
ingress or a NAT gateway every caller arrives from one address, so all the users of one public client share
a single budget, and a number chosen for one user's logout will refuse theirs. A deployment in that shape
sizes [PermitLimit](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions#Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions.PermitLimit 'Abblix\.Oidc\.Server\.Common\.Configuration\.CallerRateLimitOptions\.PermitLimit') for the crowd behind the gateway, or has the gateway pass the caller's
address on. A sender that changes address on every request is not bounded by the pairing at all.

It is on out of the box, with a limit far above what a working deployment reaches. A deployment whose own
numbers are higher raises [PermitLimit](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions#Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions.PermitLimit 'Abblix\.Oidc\.Server\.Common\.Configuration\.CallerRateLimitOptions\.PermitLimit'); one that wants no limit at all sets it to null.

These numbers are read once, when the limiter for an endpoint is first needed, so a change to them takes
effect on the next start rather than on a configuration reload. A deployment that needs a policy this cannot
express registers its own limiter instead, which the endpoints spend in place of these settings.
### Properties

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

How many requests one client may make within [Window](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions#Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions.Window 'Abblix\.Oidc\.Server\.Common\.Configuration\.CallerRateLimitOptions\.Window')\. Null lifts the limit, and the endpoints
then answer every request the caller can send\.

```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
It belongs to a registered client, so a fleet of gateways introspecting under a single `client_id`
shares one budget rather than holding one each\. And it is counted inside one instance of this server, so
a deployment running several multiplies it: a ceiling meant to hold across the fleet is divided by the
number of instances before it is set here\.

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

The window [PermitLimit](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions#Abblix.Oidc.Server.Common.Configuration.CallerRateLimitOptions.PermitLimit 'Abblix\.Oidc\.Server\.Common\.Configuration\.CallerRateLimitOptions\.PermitLimit') is counted over\. One second by default: a window that short keeps the
refusal close to the burst that caused it, so a client that merely spiked is let through again almost at
once, while one that keeps hammering stays refused\.

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

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

### Remarks
Requests are counted per window rather than over a span that slides, so a client can spend a whole budget
at the end of one window and another at the start of the next\. What that costs is a burst of twice the
limit across a window boundary; what it buys is a count that needs no per\-request history\.
