Class RateLimitingOptions
public sealed class RateLimitingOptions
- Inheritance
-
objectRateLimitingOptions
Fields
SectionName
public const string SectionName = "RateLimiting"
Field Value
- string
Properties
EnableRateLimiting
public bool EnableRateLimiting { get; set; }
Property Value
- bool
GlobalApi
Global fallback policy — applied to every endpoint that does not have its own [EnableRateLimiting] attribute. Defaults: 200 req / 60 s per IP.
public RateLimitConfig GlobalApi { get; set; }
Property Value
LoginAttempts
public RateLimitConfig LoginAttempts { get; set; }
Property Value
PasswordReset
public RateLimitConfig PasswordReset { get; set; }
Property Value
RefreshToken
public RateLimitConfig RefreshToken { get; set; }
Property Value
SensitiveWrite
Applied to sensitive write endpoints (POST/PUT/DELETE on Users, Roles, Permissions). Defaults: 30 req / 60 s per IP.
public RateLimitConfig SensitiveWrite { get; set; }