Authentication API
SSO APIs are service call APIs; before calling them, you need to call the authentication API.
Request Description
POST https://{your_domain}/api/v2/tenant/token
Request Headers
| Parameter Name | 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=
Request Parameters
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| grant_type | Authorization 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
json
{
"access_token": "-DIkzM8nF9P7Bcmd-SQrQSa-IbZ8Lpc-IWBseupOeeO0bXhhbbkdm7QERICxyxnkRl",
"token_type": "Bearer",
"expires_in": 1719,
"scope": "all",
"id_token": "eyJraWQiOiJrMSIs.eyJQwWVz_YCkkp9QOrwNYo.ELddR0qhM2jyVUQXgNupYWNtS"
}Response Parameters
| Parameter Name | Name | Type | Description |
|---|---|---|---|
| access_token | Token for calling APIs | String | When calling other SSO APIs, this value needs to be placed in the request header |
| token_type | Token type | String | |
| expires_in | Expiration time | Number | |
| scope | Scope | ||
| id_token | Generated id_token | String |