Single Sign On (SSO) with Mobile SDKs
Descope supports SSO as one of the authentication methods for your end-users. When using SSO, the SSO configuration can be different for each tenant. Please refer to the article in the manage section for the configuration of SSO for each tenant.
Client SDK
Install SDK
Import and initialize SDK
Start SSO
The first step in SSO is to start the SSO authentication process with the Identity Provider. For this step you need call sso start
function from your app client after user clicks on login icon.
SSO Exchange Code
After successful authentication with your IdP the user is redirected to the redirect_url that you provide in the sso start
function above. Your application should extract the code from the redirect_url and perform token exchange as shown below.
Session Validation
The final step of completing the authentication with Descope is to validate the user session. Descope provides rich session management capabilities, including configurable session timeouts and logout functions. You can find the details and sample code for client session validation here.
Checkpoint
Your application is now integrated with Descope. Please test with sign-up or sign-in use case.