Customer Identity (CIAM)
Authentication Interface
# Request Description
POST https://{your_domain}/api/v2/tenant/token
# 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 | Uniformly assigned by IDaaS for the integrated application |
| client_secret | Application Secret | Yes | String | Uniformly assigned by IDaaS for the integrated application |
# Request Example
POST https://{your_domain}/api/v2/tenant/token?grant_type=client_credentials&client_id= RqB2HJtkzlU8O4CNd32zf6iHC9N676qA&client_secret= 9c25b1c7cb9641b
# Response Example
Success Example
{
"access_token": "e665e923-9904",
"token_type": "bearer",
"expires_in": 1719,
"scope": "all",
"id_token": "eyJraWMSIs.eyJQwWVzQOrwNYo.ELddR0yVUQXgupYWNtS"
}
Token Expired or Invalid Error Example
HTTP Status: 400
{
"error": "invalid_token",
"error_description": "Invalid access"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Return Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| access_token | Access Token | String | Required for all subsequent API calls. |
| token_type | Token Type | String | Default is bearer. |
| expires_in | Expiration Time | int | Unit: seconds, default is 1800s. |
| scope | Authorization Scope | String | Default is all. |
