Module auth

Module auth 

Source
Expand description

Authentication API Endpoints

Handles login, logout, token refresh, and related authentication operations

Structs§

ApiKeyInfo
API Key list item
ApiKeyResponse
API Key response
AuthenticateRequest
Flexible authentication request that supports multiple authentication methods
CreateApiKeyRequest
API Key creation request
LoginRequest
Login request payload
LoginResponse
Login response data
LogoutRequest
Logout request
ProviderInfo
Provider information
RefreshRequest
Token refresh request
RefreshResponse
Token refresh response
RegisterRequest
User registration request
RegisterResponse
User registration response
RevokeApiKeyRequest
DELETE /api-keys/:key_id - Revoke an API key
UserInfo
User information in login response

Functions§

authenticate
POST /auth/authenticate - Flexible authentication endpoint
create_api_key
POST /api-keys - Create a new API key
list_api_keys
GET /api-keys - List user’s API keys
list_providers
GET /auth/providers List available OAuth providers
login
POST /auth/login
logout
POST /auth/logout
refresh_token
POST /auth/refresh
register
POST /auth/register Public endpoint for user self-registration
revoke_api_key
validate_token
GET /auth/validate Validate current token and return user information