Embedded Integration

Generate SSO Token

Generate a temporary SSO token (signed URL) that redirects the user to the Jusoor Labs dashboard on the mobile application or website, based on the provided type key and user ID (UUID) sent by the partner system.

Generate the SSO Token

POST {Tenant endpoint}/api/v2/learning-path/sso-token

Tenant endpoint example: yoursubdomain.jusoorlabs.com
Generate a signed URL to authenticate partner's users. This can be used for the mobile app or the website. Only one of uuid should be provided.
Note: uuid refers to the unique user identifier sent by your system.

Headers
Name Required Type Description
referer Required string The root of the application that is sending the request (your website at jusoorlabs.com).
accept Required string Always set as application/json.
token Required string The API token provided by Jusoor Labs.
Parameters
Name Required Type Description
uuid Required string uuid: The unique identifier of the user provided by the partner system.
type Optional string Either 'mobile' or 'website'. Defaults to 'website'.
lang Optional string Shortcut for the language you want (must exist on your Jusoor Labs website).
Response

The API returns a signed URL (link) in the response body. Your system should redirect the user directly to this link to complete the SSO login — there is no additional processing required.

200 OK application/json
{
    "status": true,
    "message": "SSO token generated successfully",
    "data": {
        "url": "https://yoursubdomain.jusoorlabs.com/sso/redirect?token=eyJhbGciOiJIUzI1NiIs..."
    }
}