Single Sign On URL
Learn how to generate a URL for the hosted UI used for Single Sign On (SSO) of license users with the /api/v4/sso_url endpoint.
Endpoint
Method:
GETPath:
/api/v4/sso_urlDescription: Returns the Single Sign-On URL for license user authorization.
Authentication
See License API Authorization.
Required headers
Date(string)Authorization(string)
Recommended headers
Accept: application/json
Request
Query parameters
Required:
product(string)customer_account_code(string)
Optional:
response_type(string) —codeortoken. Default:code
Example request URL: /api/v4/sso_url?product=string&customer_account_code=string (You can add &response_type=code to enable Authorization Code grant.)
Examples
Example success response (200)
Authorization method
By default, authorization for SSO uses the Implicit grant which attaches user pool tokens (id_token, access_token, expires_in and token_type) to the redirect_uri once the user is verified. The id_token can then be used by the Single Sign On server as authentication for license user in Activate License (Online Method).
If you do not want to expose user tokens or the redirect URI is too long for your use case, you can use the Authorization Code grant. In that case the code query parameter is attached to the redirect_uri (instead of id_token) and this code is sent in the request body when doing license activation. To enable Authorization Code grant add response_type=code to this endpoint. Example: /api/v4/sso_url/?customer_account_code=test&product=test&response_type=code
Schema
Request Query Parameters (JSON Schema)
Response Body (TypeScript)
Response Body (JSON Schema)
Errors
If an error occurs, the response will have an HTTP status code >= 400 and the response body will contain an error description in this format:
Error schema (JSON Schema)
List of exceptions
unknown_product (400): Provided product was not found
missing_headers (400): Some headers are missing
authorization_missing_params (400): Some parameters are missing in the authorization: { params }
Last updated
Was this helpful?