Skip to content

Fortified IDDocs

With QR or "app-switch"

This authenticator expects users either scan a QR code or "app-switch".

This is the configuration for the TaskViewAuthenticator

Common Authenticator configuration can be found here.

NameDescriptionDefault valueMandatory
internal_http_destinationID of the internal http client used to talk with backend. "default"false
username_parameterParameter to where the username is exported."username"false
server_api_urlAddress to the mobile server api module.N/Atrue
timeout_secondsTime to live before the authenticator expires
(0 is forever)
0false
task_formThe task-form to be used in the authentication. N/Atrue
webroot_dirSee common authenticator configurationweb/mobileid/taskviewauthenticatorfalse

API follows the general conventions of the Fortified Web Authenticator API.

All requests use the HTTP PUT method with Content-Type: application/json, sent to the directory URL the view was loaded from. The session cookie must be sent with every request.

MessagePurpose
initCreate the task and obtain the activation URL. Send it when the view loads.
pollFetch the current task state.
cancelCancel the task.

Creates an unassigned task with the configured form and timeout, and answers with the activation URL to present as a QR code or an app-switch link.

Init is idempotent. When a task already exists for the session, the existing activation URL is returned instead of creating a new task, so a browser reload does not start over.

{
"type": "init"
}

Fetch the current task state. Poll until the state is final.

{
"type": "poll"
}

A request can be canceled at any time. This cancels the task and answers with a cancel message carrying the location to return to.

{
"type": "cancel"
}

Expect HTTP status code 200. Anything else is to be considered an error.

The body is a JSON message whose data carries the task state and activation_url, or a cancel or failure message as described in Web Authenticator API.

One of the following values is returned in data.state.

StateMeaning
unassignedThe task has been created and no device has picked it up. Show the QR code.
pendingA device has been assigned the task but has not opened it. Show the QR code.
openedThe user has opened the task in the app. Show a progress indicator.
confirmedThe user confirmed. The authentication is complete.
rejectedThe user rejected the task. The authenticator fails.
cancelledThe task was cancelled. The authenticator fails.
expiredThe task timed out after timeout_seconds. The authenticator fails.

Apart from system logging, event logging is done when starting, completing, and failing a transaction.

Event ids are:

  • MOBILE_ID_100101("MobileID authentication started")
    • IDENTIFIER (session trace id)
  • MOBILE_ID_100102("MobileID authentication completed")
    • IDENTIFIER (session trace id)
    • SOURCE_USER_NAME (user subject)
  • MOBILE_ID_100103("MobileID authentication rejected")
    • IDENTIFIER (session trace id)
  • MOBILE_ID_100104("MobileID authentication canceled")
    • IDENTIFIER (session trace id)
  • MOBILE_ID_100105("MobileID authentication expired")
    • IDENTIFIER (session trace id)

After a user completes a transaction, the authenticator is marked as done. Data from the authentication response is then put into the global state, replacing existing values:

  • "username_parameter" set to user subject