Open
github-actions wants to merge 1 commit into main from doc-update-from-pr
docs/api/authentication.md
docs/configuration.md
Before
## Authentication Endpoints### POST /auth/login
Authenticates a user with email and password.
**Request Body:**
```json
{
"email": "user@example.com",
"password": "secret"
}
```
**Response:** `200 OK` with JWT token.
### POST /auth/token
Refreshes an expired JWT token.
**Response:** `200 OK` with new token.
After (AI-generated)
## Authentication Endpoints### POST /auth/login
Authenticates a user with email and password.
**Request Body:**
```json
{
"email": "user@example.com",
"password": "secret"
}
```
**Response:** `200 OK` with JWT token.
#### Rate Limiting
This endpoint is rate-limited. Exceeding the limitreturns `429 Too Many Requests` with a `Retry-After`header indicating when the next request is allowed.
Default: 100 requests per 60-second window.### POST /auth/token
Refreshes an expired JWT token.
**Response:** `200 OK` with new token.
#### Rate Limiting
This endpoint shares the same rate limiting policyas `/auth/login`. See above for details.
This PR adds rate limiting to the
/auth/loginand/auth/tokenendpoints. Changes include:RateLimitermiddleware with configurable limits per endpointauth_handler.pyto apply rate limiting on login and token refreshRATE_LIMIT_MAX_REQUESTSandRATE_LIMIT_WINDOW_SECONDS