Server is running with cookie domain: .polyanalitika.ru
Configure response delays and HTTP errors for testing
Last issued tokens stored in memory. Deleting a token forces the user to re-authenticate.
Login form - returns JWT token in header, cookie, and response body
POST /login - Accepts credentials, returns JWT token
Returns user info and permissions. Requires valid Authorization header.
Mock support: Timeout, 400, 401, 403, 500, 503 errors
Search users in registry with filtering and pagination
Mock support: Timeout, 400, 401, 403, 500, 503 errors
Authentication endpoint that returns JWT token
Mock support: Timeout, 400, 401, 403, 500, 503 errors
List all last issued tokens (debug endpoint)
POST /tokens/<username>/delete — revoke stored token for a user
View current mock configuration (JSON)
# 1. Login to get a token
curl -X POST http://localhost:5000/auth/login \
-H "Content-Type: application/json" \
-d '{"username": "user10", "password": "any"}'
# 2. Use the token to get user info
curl -X GET http://localhost:5000/api/v1/admin/common/token/user \
-H "Authorization: Bearer <your_token>"
# 3. Search users
curl -X POST "http://localhost:5000/api/v1/admin/common/users/search/reestr?limit=5&page=0" \
-H "Authorization: Bearer <your_token>" \
-H "Content-Type: application/json" \
-d '{"status": ["ACTIVE"]}'