Pangolin uses JSON Web Tokens (JWT) for user authentication.
Base Endpoint: /api/v1/tokens
- Method:
POST - Path:
/api/v1/users/login - Body:
{ "username": "alice", "password": "...", "tenant_id": "optional-uuid" }
- Method:
POST - Path:
/api/v1/tokens/revoke - Auth: Bearer Token
- Body:
{}
- Method:
POST - Path:
/api/v1/tokens/revoke/{token_id} - Auth: Admin
- Method:
GET - Path:
/api/v1/users/{user_id}/tokens
pangolin-admin list-user-tokens --user-id <uuid># Revoke your current session
pangolin-admin revoke-token
# Revoke a specific token by ID
pangolin-admin revoke-token-by-id --id <token-uuid>tokens = client.tokens.list_user_tokens("user-uuid")
for t in tokens:
print(t.token_id, t.is_valid)client.tokens.revoke_by_id("token-uuid")- Log in as Tenant Admin.
- Navigate to Users.
- Select a specific user (click name or "Edit").
- Navigate to the Sessions/Tokens tab.
- List: You will see active sessions.
- Revoke: Click Revoke next to a session to invalidate it immediately.