Customer Identity (CIAM)
Authentication Interface
The SSO interface is a service call interface, and the authentication interface must be called first before making the call.
# Request Description
POST https://{your_domain}/api/v2/tenant/token
# Request Headers
| Parameter Name | Chinese Name | Required | Type | Example |
|---|---|---|---|---|
| content-type | Content Format Type | Yes | String | application/x-www-form-urlencoded |
# Request Example
https://{your_domain}/api/v2/tenant/token?grant_type=client_credentials&client_id={client_id}&client_secret={client_secret}
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| grant_type | Grant Type | Yes | String | Fixed value: client_credentials |
| client_id | Application ID | Yes | String | |
| client_secret | Application Secret | Yes | String |
# Response Example
Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "-DIkzM8nF9P7Bcmd-SQrQSa-IbZ8Lpc-IWBseupOeeO0bXhhbbkdm7QERICxyxnkRl",
"token_type": "Bearer",
"expires_in": 1719,
"scope": "all",
"id_token": "eyJraWQiOiJrMSIs.eyJQwWVz_YCkkp9QOrwNYo.ELddR0qhM2jyVUQXgNupYWNtS"
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# Response Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| access_token | Interface Access Token | String | Required in the request header when calling other SSO APIs. |
| token_type | Token Type | String | |
| expires_in | Expiration Time | Number | |
| scope | Permission Scope | ||
| id_token | Generated id_token | String |
I am ready to receive the Markdown content for translation. Please paste the text.
