Connect
DP Connect is a Single Sign-On (SSO) functionality that enables the host app to securely pass user profile information, allowing seamless authorization within the DPApp. The DP Platform facilitates the transfer of user data from the host app backend to the DPApp backend, ensuring smooth user authentication and returning a session token for continued access.
Diagram
Below is the authentication sequence flow when integrating the Dragonpass Hybrid SDK:
Server Integration
The host app backend must expose the following endpoints so the DP Platform can exchange authorization codes for access tokens and retrieve user data.
Get Access Token
Usage
After obtaining the auth token from your backend, pass it to the SDK:
iOS
DPSDK.shared.setAuthCode(token: "xxx")
Android
DPSDK.setAuthCode("xxx")