Table of Contents

Class RateLimitingOptions

Namespace
KadicAuth.Api.Security
Assembly
KadicAuth.Api.dll
public sealed class RateLimitingOptions
Inheritance
object
RateLimitingOptions

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

RateLimitConfig

LoginAttempts

public RateLimitConfig LoginAttempts { get; set; }

Property Value

RateLimitConfig

PasswordReset

public RateLimitConfig PasswordReset { get; set; }

Property Value

RateLimitConfig

RefreshToken

public RateLimitConfig RefreshToken { get; set; }

Property Value

RateLimitConfig

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; }

Property Value

RateLimitConfig