AccountRateLimiterServiceCollectionExtensions class
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Extensions
Contains extensions to register the account rate limiter
public static class AccountRateLimiterServiceCollectionExtensions
Public Members
| name | description |
|---|---|
| static AddAccountRateLimiter(…) | Adds a global rate limiter that limits POST requests to account actions like login, forgot password and sign up per client IP address and path, see AccountRateLimitOptions. Other requests are not limited. Call app.UseRateLimiter() in the request pipeline to activate it. If the application is behind a proxy, make sure forwarded headers are configured, otherwise all clients share the IP address of the proxy. |