Repository navigation
Authentication Rate Limiting
Wexflow includes a built-in, in-memory rate limiter (AuthRateLimiter) to protect authentication and password recovery endpoints against brute-force attacks, credential stuffing, and email flooding.
When a client or account exceeds the configured threshold, the server responds with HTTP 429 Too Many Requests along with a Retry-After header indicating how many seconds remain before the lockout or quota window resets.
Rate limiting applies to the following unauthenticated endpoints across both the .NET 10 (api/v1) and .NET Framework 4.8 servers:
| Endpoint | Method | Tracked Keys | Behavior When Limit Exceeded |
|---|---|---|---|
/login |
POST |
Normalized username and client IP address |
Blocks further login attempts for LoginLockoutMinutes (HTTP 429). Counters clear automatically upon a valid login or password reset confirmation. |
/reset-password |
POST |
Normalized username (u query parameter) and client IP address |
Rejects additional reset email requests until the current ResetWindowMinutes window expires (HTTP 429). |
/confirm-password-reset |
POST |
Client IP address | Rejects additional token confirmation attempts until the current ResetWindowMinutes window expires (HTTP 429). |
Note
Password reset tokens are stored in memory as SHA-256 hashes, expire after ResetTokenLifetimeMinutes, and are invalidated immediately upon first use or when a newer token is issued for the same account. Restarting Wexflow.Server clears in-memory rate-limit counters and pending reset tokens.
You can customize the rate limiter and reset-token lifetime in appsettings.json (.NET 10) or Wexflow.Server.exe.config (.NET Framework 4.8). All values must be positive integers; if a setting is omitted or invalid, the default value is used.
| Setting | Default | Description |
|---|---|---|
MaxLoginFailuresPerUser |
10 |
Maximum failed login attempts allowed for a single username within LoginWindowMinutes before locking out that account. |
MaxLoginFailuresPerIp |
30 |
Maximum failed login attempts allowed from a single client IP address within LoginWindowMinutes before blocking that IP. |
LoginWindowMinutes |
30 |
Sliding/fixed tracking window (in minutes) for counting failed login attempts. |
LoginLockoutMinutes |
30 |
Duration (in minutes) that an account or IP remains blocked after exceeding the failed login threshold. |
MaxResetRequestsPerWindow |
5 |
Maximum password reset link requests allowed per username and per client IP within ResetWindowMinutes. |
MaxConfirmAttemptsPerWindow |
10 |
Maximum password reset confirmation submissions allowed per client IP within ResetWindowMinutes. |
ResetWindowMinutes |
30 |
Quota tracking window (in minutes) for /reset-password and /confirm-password-reset requests. |
ResetTokenLifetimeMinutes |
30 |
Validity duration (in minutes) of an emailed password reset link before the single-use token expires. |
Changes to appsettings.json are reloaded automatically at runtime without restarting the server.
{
"MaxLoginFailuresPerUser": 10,
"MaxLoginFailuresPerIp": 30,
"LoginWindowMinutes": 30,
"LoginLockoutMinutes": 30,
"MaxResetRequestsPerWindow": 5,
"MaxConfirmAttemptsPerWindow": 10,
"ResetWindowMinutes": 30,
"ResetTokenLifetimeMinutes": 30
}Add or update the keys inside the <appSettings> section and restart the Wexflow Windows service for changes to take effect.
<appSettings>
<add key="MaxLoginFailuresPerUser" value="10" />
<add key="MaxLoginFailuresPerIp" value="30" />
<add key="LoginWindowMinutes" value="30" />
<add key="LoginLockoutMinutes" value="30" />
<add key="MaxResetRequestsPerWindow" value="5" />
<add key="MaxConfirmAttemptsPerWindow" value="10" />
<add key="ResetWindowMinutes" value="30" />
<add key="ResetTokenLifetimeMinutes" value="30" />
</appSettings>-
Shared Office IPs: Because IP quotas apply per client IP address, deployments where multiple administrators share a single outbound NAT IP may want to increase
MaxLoginFailuresPerIp(e.g.,50) andMaxResetRequestsPerWindow(e.g.,10). -
Reverse Proxies (NGINX, IIS, Caddy): Ensure your reverse proxy forwards the real client IP address (
X-Forwarded-For/ forwarded headers) so all users do not share the proxy's local address (127.0.0.1).
Copyright © Akram El Assas. All rights reserved.
- Home
- Install Guide
- Migration Guide to v10.0
- Authentication Rate Limiting
- HTTPS/SSL
- Screenshots
- Docker
- Configuration Guide
- Persistence Providers
- Getting Started
- Android App
- Local Variables
- Global Variables
- REST Variables
- Functions
- Cron Scheduling
- Command Line Interface (CLI)
- REST API Reference
- Samples
- Logging
- Custom Tasks
-
Built-in Tasks
- File system tasks
- Encryption tasks
- Compression tasks
- Iso tasks
- Speech tasks
- Hashing tasks
- Process tasks
- Network tasks
- XML tasks
- SQL tasks
- WMI tasks
- Image tasks
- Audio and video tasks
- Email tasks
- Workflow tasks
- Social media tasks
- Waitable tasks
- Reporting tasks
- Web tasks
- Script tasks
- JSON and YAML tasks
- Entities tasks
- Flowchart tasks
- Approval tasks
- Notification tasks
- SMS tasks
- Run from Source
- Fork, Customize, and Sync