Registration with 3rd party mobile app
Introduction
Registration with third-party mobile application (also known as App2App) is possible using Two step registration.
Prerequisites
Number of properties needs to be setup on the backend side, to be sure that it is properly configured. A two-step custom registration IDP with scripts for both init
and complete
steps needs to be set up. Third-party app needs to be installed on the device and be ready to receive and emit iOS Universal Links
Flow overview
- App initiates custom registration with
init
request (with empty data) Init
responses with JSON:sessionId
andapp link
(the example of the response is shown in step 2 below)- App opens the third party app using
app link
. - Third party app authenticates user and navigates back to the app using
app link
. - App extracts
artefactId
from theapp link
and sends it to the backend along withsessionId
. - Registration finishes and app receives access/refresh token.
- Proceed with PIN creation flow.
Example of the flow
Your app needs to be able to receive Universal Links from third party app. Be sure to register correct URL scheme
Step 1
Step 2
Example of Init response:
Step 3
App Opens the third party app using app link
Step 4
Third party app authenticates user and navigates back to the app using app link
.
Step 5
App extracts data: artefactId
from the app link
and sends it to the backend along with sessionId
.
Step 6
Registration finishes and app receives access/refresh token.