Requirements
The mobile application (yourapp) must be programmed to perform the following tasks:
Register during installation, its own customized URI scheme (e.g., yourapp://...) in the mobile's operating system.
Start OAuth 2.0 authorization (or OpenID Connect authentication) with UAEPass in the WebView.
Monitor the WebView's URL to intercept the Mobile ID's URI scheme (by default,mobileid://...).
In the Mobile ID's URI, change the callback URLs so they use the URI scheme of your app instead of https, propagating the original callback URL via a parameter.
Launch the Mobile ID application, opening the modified URI in the system.
Process incoming URLs that use the customized scheme (yourapp://...), retrieving the original callback URL from the parameter.
Open the original callback URL in the WebView so the authorization server can take over again and complete the OAuth authorization.
Monitor the WebView URL to intercept the OAuth redirect URI, which indicates the completion of the authorization phase.
Note: See the documentation for the mobile's operating system for how to perform these tasks, in particular the communication between applications using customized URI schemes.
Make sure to use your own app scheme instead of uaepassdemoapp:// in both Staging and Production environment in order avoid app redirection issues from your app to other service provider apps.
Last updated