Create User Login Challenge

POST /auth/login/init

Starts a user login session, returning a challenge that will be used to verify the user's identity.

If the user has a credential of kind PasswordProtectedKey a temporary one time code needs to be passed in the loginCode field.

If the user has at least one discoverable webauthn credential, username is optional (usernamless flow).

circle-info

Required Permissions

None

Request body

username

String

Email address of the user. Optional in the case of the webauthn usernameless flow

orgId *

String

ID of the target Org

loginCode

String

Optional OTP that the user received following Send Login Code

Example

{
  "username": "[email protected]",
  "orgId": "or-34513-nip9c-8bppvgqgj28dbodrc",
  // Optional
  // Without it the credentials with Password Protected Key credentials won't be returned
  "loginCode": "1234-1234-1234-1234"
}

Responses

circle-info

Success - an object containing the user's authentication options

Format:

Example

Last updated