User Account
Authenticate user with credentials
Authenticate a user using the specified method and credentials. Requires a valid session token from /initAuth.
Credential Formats by Method:
- password: { "credentials": { "password": "your-password" } }
- otp: { "credentials": { "otp": "123456" } } (6-digit code, valid for 10 minutes)
- google: { "credentials": "google-id-token-string" }
- microsoft: { "credentials": { "accessToken": "...", "idToken": "..." } }
- azureAd: { "credentials": { "accessToken": "...", "idToken": "..." } }
- oauth: { "credentials": { "accessToken": "...", "idToken": "..." } }
- samlSso: Handled via redirect flow (use /saml/signIn instead)
Multi-Step Response:
If organization uses MFA, successful authentication returns:
- status: "success" with nextStep and allowedMethods for next step
Fully Authenticated Response:
After completing all steps:
- message: "Fully authenticated" with accessToken (1hr) and refreshToken (7d)
Security:
- Account locks after 5 consecutive failed attempts
- CAPTCHA may be required if enabled (pass cf-turnstile-response)
post/userAccount/authenticate
Headers
x-session-tokenstring required
Session token received from /initAuth endpoint
Request body
Example request
{
"credentials": {
"otp": "123456"
}
}Response
Authentication step successful or fully authenticated
Example response
{
"message": "Fully authenticated"
}