Quick start guide
Learn how to test out a MobileID authentication using the Authenticator App and the MobileID API.
This quick start guide shows you how to:
- Get set up for testing MobileID with the Authenticator App.
- Create a MobileID user.
- Register a MobileID device
- Perform an authentication.
This guide requires that you make API requests using a tool of your choice.
If you want to try out MobileID without making API requests, then you can use the Try it out page in the Signicat Dashboard. Here, you can use a button to trigger MobileID operations instead.
Prerequisites
1. Initial preparations
Before you start, you need to have:
- Created a user account for the Signicat Dashboard.
- Created an organisation and an account in the Signicat Dashboard.
It is also possible to add a domain, but this is not required for MobileID.
We recommend that you create a sandbox account to test our services before going live. Sandbox and production accounts must be set up separately.
How do I complete the initial preparations?
To sign up to Signicat for free and complete the initial preparations:
- Sign up to the Signicat Dashboard and register your profile.
- Ensure that you have created an organisation.
- Create an account. To do this:
- Go to Signicat Dashboard > Organisation, then click the + Add account button.
- Enter an account name, choose the type of account that you want to create, then click the Create button.
2. Get client credentials
To authenticate against our APIs, you need to set up an API client. To do this:
- Go to Signicat Dashboard > Settings > API clients.
- Click the + Add client button.
- Enter a name for the client, then click the Create button.
- You must have at least once client secret, so click Add secret button. This take you to the Secrets tab on the client details page.
- Click the + Add secret.
- Enter a name for the client secret, then click Generate secret.
Make sure that you store the client secret in a secure place. This is the only time that you can view the client secret in clear text.
If you do lose your client secret, then you can always generate another one.
For more information about creating an API client, see the Accessing Signicat API products page.
3. Set permissions
To connect to this API, you need to configure the correct permissions for you API client. To do this:
- Go to Signicat Dashboard > Settings > API clients.
- Click the Edit button beside the client that you created.
- Click the Permissions tab, then click the + Select product button.
- Tick the boxes for MobileID API and MobileID Admin API, then click the Update button.
If you cannot access the Permissions tab, then you do not have the correct role to manage permissions for your organisation. To receive access, contact your organisation administrator.
For more information, see the Managing roles and permissions page
For more information about setting permissions, see the Permissions section on the Accessing Signicat API products page.
4. Onboard to MobileID
You need to onboard your account to MobileID. To do this:
- Go to Signicat Dashboard > Products > MobileID.
- Click the + Add MobileID button.
Set it up
Next, you have to set up a tool for triggering operations and access our Authenticator App to perform them.
1. Set up MobileID in Postman
This guide provides steps for using Postman as a tool for initiating the APIs, however, you can use the preferred tool of your choice.
To set up MobileID in Postman and obtain an access token:
- Open Postman.
- Import the collection. To do this:
- Navigate to the Collections tab on the left-hand side of the screen, then click the Import button.
Screenshot showing import of MobileID collection into Postman
- In the blank field in the dialogue box, paste the URL to our MobileID API specification
https://api.signicat.com/mobileid/core/openapi.json
.Our recommendationWe recommend that you generate the request and response parameters from the examples in the schema, and that you create folders according to the tags. To do this:
- Click the View import settings button.
- In the Parameter generation section, select Example from the dropdown menu.
- In the Folder organization section, select Tags from the dropdown menu.
- Click the Import button in the dialogue box to finalise the import.
- Create variables. To do this, click the Variables tab, and add the following:
Screenshot showing creation of variables in Postman
- Set up authorisation. To do this, go to the Authorization tab and and update the following:
Screenshot showing set up of authorisation in Postman
- Click on the Get new access token button to get an access token.
- To add the token to the requests, click Proceed, then Use Token.
- Save your changes.
To automatically refresh your access token after it has expired, enable the Auto-refresh token toggle button under the Authorization tab.
You can only enable auto-refresh tokens after you have received your first valid token.
You have now set up Postman for the MobileID APIs.
2. Install our Authenticator App
To perform the operations on a mobile device you can use our Authenticator App.
The Authenticator App is our white-label mobile application which enables you to perform operations on a mobile device, so that you can start testing out MobileID as quickly as possible.
Want to use our SDK instead?
It is also possible to use our SDK and integrate it into your own app instead. To get access to the SDK, you can contact us by creating a support ticket in the Signicat Dashboard.
When using the SDK, you need to configure the controller to use your MobileID account. To do this, you use the same values as those required to configure the Authenticator App:
- See the configure our Authenticator app section for the values to configure.
- See our Android and iOS SDK documentation for details on how to configure the controller.
iOS
To install our Authenticator App on your iPhone, you have to:
- Install Apple's TestFlight app.
- Scan the QR code below on your mobile device:
QR code to install the iOS Authenticator App
- Install the latest version.
Android
To install our Authenticator App on your Android, you have to:
- Scan the QR code below on your mobile device:
QR code to install the Android Authenticator App
- Install the latest version.
3. Configure our Authenticator App
Once you have installed the Authenticator App, you need to configure it to use your MobileID account.
To do this, you need to update the following values:
- Application ID (
applicationId
) - Public E2E key (
publicKey
) - Server URL (
https://api.signicat.com/encore/encap
)
Our server URL is the same for both sandbox and production accounts.
How to obtain these values
To get your application ID (applicationId
) and public E2E key (publicKey
), you need to:
- Go to Signicat Dashboard > Products > MobileID > Details.
- Click on Quick configuration in the top-right corner.
If you do not wish to use the QR code scanner, then you can also find the Application ID value under the Account tab, and the Public key value under the E2E keys tab.
How to set these values
It is also possible to select a configuration from the dropdown list, or manually add your own configuration by clicking +
.
Try MobileID
You have now completed all required preparations and are ready to perform MobileID operations.
1. Create a MobileID user
To create a MobileID user:
- In Postman, navigate to Signicat MobileID API reference > User > Create user.
- Under the Body tab, you can input your own request body.
Example: Request to create a MobileID user
{
"attributes": {
"first_name": "Jane",
"last_name": "Smith"
}
} - Click the Send button.
Example: Response from creating a MobileID user
{
"id": "76bfe9e6-1fe2-4b92-b742-a66015a98981",
"created": "2023-08-16T11:25:50.923Z",
"state": "ACTIVE",
"attributes": {
"last_name": "Smith",
"first_name": "Jane"
}
}
You have now created a MobileID user.
We recommend that you save the id
of your MobileID user (user ID), as it is needed in future operations.
2. Register a MobileID device
Now that you have created a MobileID user, you can register a MobileID device. To do this:
- In Postman, navigate to Signicat MobileID API reference > Registration > Start registration.
- Under the Body tab, you can input your own request body. For this API, it is required to set the user ID (
userId
). This is the ID of the MobileID user that you created in the previous section.Example: Request to register a MobileID device{
"userId": "76bfe9e6-1fe2-4b92-b742-a66015a98981"
} - Click the Send button.
- You have now started a registration operation. The response contains an
activationCode
, which you need in the next step.
Show activation code as QR code in Postman
To get the best the user experience, Postman can show the activation code as a QR code. This means that you do not have to manually type the code in the Authenticator App.
To do this, add the following snippet to Script > Post-response in thePOST
request:let response = pm.response.json();
let qrcTemplate = '<img width="250" height="250" src="https://qrcode.tec-it.com/API/QRCode?data=' + encodeURIComponent(response.data.activationCode) + '">';
pm.visualizer.set(qrcTemplate, {});Example: Response from registering a MobileID device{
"accountId": "a-spge-7NS53Bt6di0YlzA9SYQO",
"transactionId": "c9a0d33d-3366-4561-b47f-ec48428e2962",
"state": "PENDING",
"created": "2023-08-16T11:33:08.537Z",
"device": {},
"user": {
"id": "76bfe9e6-1fe2-4b92-b742-a66015a98981",
"created": "2023-08-16T11:25:50.923Z",
"state": "ACTIVE"
},
"operationProperties": {
"activationCode": "057771",
"registrationMode": "REGISTRATION",
"sessionExpiryTime": "2023-08-16T11:34:38.441Z"
}
} - Open the Authenticator App.
- Click on the button to start the registration operation on the device.
- Scan or enter the
activationCode
that was obtained in Step 4.NoteThe activation code is only valid until the session expiry time (
sessionExpiryTime
). - Select a PIN code.
- Select if you want to activate biometrics.
- In Postman, navigate to Registration > Get state of ongoing registration.
- Under the Params tab, update the value of
transactionId
to the value you obtained in the Start registration response. - Click the Send button.
Example: Response from fetching the state of a MobileID registration
{
"accountId": "a-spge-7NS53Bt6di0YlzA9SYQO",
"transactionId": "c9a0d33d-3366-4561-b47f-ec48428e2962",
"state": "COMPLETED",
"created": "2023-08-16T11:36:57.759Z",
"completed": "2023-08-16T11:37:19.110Z",
"device": {
"id": "dc55de99-b11f-40ad-8c12-adb98be9ec61",
"state": "ACTIVE",
"lastOperationType": "REGISTRATION",
"lastUsed": "2023-08-16T11:37:19.122Z",
"created": "2023-08-16T11:37:19.111Z"
},
"user": {
"id": "76bfe9e6-1fe2-4b92-b742-a66015a98981",
"created": "2023-08-16T11:25:50.923Z",
"lastUsed": "2023-08-16T11:37:19.100Z",
"state": "ACTIVE"
},
"operationProperties": {
"activationCode": "662815",
"authLevel": "TWO_FACTOR",
"registrationMode": "REGISTRATION",
"sessionExpiryTime": "2023-08-16T11:38:27.660Z"
}
}
You have now registered and activated a MobileID device.
We recommend that you save the id
of your MobileID device (device ID), as it is needed in future operations.
3. Authenticate your MobileID user
Now that you have registered a MobileID device, you can authenticate with that device. To do this:
- In Postman, navigate to Signicat MobileID API reference > authentications > Start authentication.
- Under the Body tab, you can input your own request body. For this API, it is required to set both the user ID (
userId
) and the device ID (deviceId
). These are the IDs of the MobileID user and MobileID device that you obtained in the previous sections.Example: Request to authenticate{
"userId": "76bfe9e6-1fe2-4b92-b742-a66015a98981",
"device": {
"id": "dc55de99-b11f-40ad-8c12-adb98be9ec61"
},
"operationProperties": {
"preOperationContext": {
"content": "Approve your first MobileID authentication",
"mimeType": "text/plain"
},
"postOperationContext": {
"content": "Cool! You have successfully completed a MobileID authentication",
"mimeType": "text/plain"
}
}
} - Click the Send button.
Example: Response from the authentication
{
"accountId": "a-spge-7NS53Bt6di0YlzA9SYQO",
"transactionId": "e33c5cd4-03d2-42ca-acc1-407a72c234ce",
"state": "PENDING",
"created": "2023-08-16T11:53:24.863Z",
"device": {
"id": "dc55de99-b11f-40ad-8c12-adb98be9ec61",
"state": "ACTIVE",
"lastOperationType": "AUTHENTICATION",
"lastUsed": "2023-08-16T11:51:14.703Z",
"created": "2023-08-16T11:37:19.111Z"
},
"user": {
"id": "76bfe9e6-1fe2-4b92-b742-a66015a98981",
"created": "2023-08-16T11:25:50.923Z",
"lastUsed": "2023-08-16T11:51:14.693Z",
"state": "ACTIVE"
},
"operationProperties": {
"postOperationContext": {
"content": "Cool! You have successfully completed a MobileID authentication",
"mimeType": "text/plain"
},
"preOperationContext": {
"content": "Approve your first MobileID authentication",
"mimeType": "text/plain"
},
"pushSent": true,
"sessionExpiryTime": "2023-08-16T11:54:54.955Z"
}
} - Open the Authenticator App.
- The app shows a dialogue box with the pre-operation context (
preOperationContext
). If you do not see the pre-operation context, then you can use the reload button. - Click the Approve button.
- In Postman, navigate to authentications > Get state of ongoing authentication.
- Under the Params tab, update the value of
transactionId
to the value you obtained in the Start authentication response. - Click the Send button.
Example: Response from fetching the state of an authentication
{
"accountId": "a-spge-7NS53Bt6di0YlzA9SYQO",
"transactionId": "e33c5cd4-03d2-42ca-acc1-407a72c234ce",
"state": "COMPLETED",
"created": "2023-08-16T11:53:24.863Z",
"completed": "2023-08-16T11:53:37.407Z",
"device": {
"id": "dc55de99-b11f-40ad-8c12-adb98be9ec61",
"state": "ACTIVE",
"lastOperationType": "AUTHENTICATION",
"lastUsed": "2023-08-16T11:53:37.392Z",
"created": "2023-08-16T11:37:19.111Z"
},
"user": {
"id": "76bfe9e6-1fe2-4b92-b742-a66015a98981",
"created": "2023-08-16T11:25:50.923Z",
"lastUsed": "2023-08-16T11:53:37.382Z",
"state": "ACTIVE"
},
"operationProperties": {
"postOperationContext": {
"content": "Cool! You have successfully completed a MobileID authentication",
"mimeType": "text/plain"
},
"authLevel": "TWO_FACTOR",
"authMethod": "DEVICE_IOS_FACE_ID",
"preOperationContext": {
"content": "Approve your first MobileID authentication",
"mimeType": "text/plain"
},
"pushSent": true,
"sessionExpiryTime": "2023-08-16T11:54:54.955Z"
}
}
You have now completed a MobileID authentication.
You can find information about all of the different authentication endpoints in our MobileID API reference documentation.
Learn more
You can explore our developer documentation to learn more about what you can do with MobileID and further test out the product.