Skip to content

Authenticate with email and password

POST
/api/auth/login

Creates a session for local (email/password) authentication. Returns the authenticated user identity on success. Sets a session cookie for subsequent requests. OIDC and LDAP providers use their own OAuth callback flows.

Request Body

application/json
JSON
{
  
"email": "jane@example.com",
  
"password": "S3cure!#Pass001"
}

Responses

Authentication successful — session created

application/json
JSON
{
  
"id": 42,
  
"name": "Jane Doe",
  
"email": "jane@example.com",
  
"admin": false,
  
"provider": null
}

Playground

Server
Body

Samples

Powered by VitePress OpenAPI

Part of the MITRE Security Automation Framework (SAF)