finishAuthentication
Stores the authentication response. This command is used to check whether the authentication was successful.
Attributes
var | ||
|---|---|---|
Required | Value type | EL-evaluated |
Yes | String | No |
Defines the variable storing the authentication response. | ||
Response codes:
204: Authentication passed.
400: The phone number does not match the one given when the session was created, or something else is wrong with the request body
403: Authentication failed three times and the session is locked
404: Session not found – expired sessions are cleaned up Identification side every 24 hours. Possibly create a new session, or have the user contact support (Leap simply creates a new session).
409: Authentication has not succeeded, but there are attempts left (out of three available per session). Should probably send the user back to the authentication URL that was received as response to the first request
410: The Identification side session has expired but not cleaned up yet, and there are authentication attempts left. Possibly create a new Identification side session, so that
usedAttemptsis set. The number of spent authentication attempts can be retrieved calling sms-authentication-session-public