Complete User Login
Last updated
Last updated
POST /auth/login
Completes the login process and provides the authenticated user with their authentication token.
The type of credentials used to login is determined by the kind
field in the nested objects (firstFactor
and secondFactor
). Supported credential kinds are:
Fido2
: Login challenge is signed by a user's signing device using WebAuthn
.
Key
: Login challenge is signed by a user's private key.
PasswordProtectedKey
: Login challenge is signed by the decrypted user's private key that was sent during step.
Auth:Users:Read
Always Required
challengeIdentifier
*
String
firstFactor
*
Object
first factor credential used to sign the challenge
secondFactor
Object
Optional
second factor credential used to authenticate a user
kind
*
String
will always be Fido2
credentialAssertion
*
Object
credentialAssertion.credId
*
String
base64url encoded id of the credential returned by the user's WebAuthn client
credentialAssertion.clientData
*
String
base64url encoded client data object returned by the user's WebAuthn client
credentialAssertion.authenticatorData
*
String
base64url encoded authenticator data object returned by the user's WebAuthn client
credentialAssertion.signature
*
String
base64url encoded signature returned by the user's WebAuthn client
credentialAssertion.userHandle
*
String
base64url encoded userHandle returned by the user's WebAuthn client
kind
*
String
Key
or PasswordProtectedKey
credentialAssertion
*
Object
credentialAssertion.credId
*
String
base64url encoded id of the credential
credentialAssertion.clientData
*
String
credentialAssertion.signature
*
String
base64url encoded signature generated by signing the clientData JSON string object
Success - a user authentication token
temporary authentication token returned by the
base64url encoded JSON string object that was signed with the user's private key
See for common errors.
See for user login errors.