Employee Identity (EIAM)

Authentication Interface

IDaaS Identity API

# Request Description

POST https://{your_domain}/api/v2/tenant/token

# Request Headers

Parameter Chinese Name Required Example Value Description
Authorization Authentication Information Required Basic UnFCMkhKdNOWk9xWA== Use client_id and client_secret for basic64 authentication,
Format: base64(client_id:client_secret)
Content-Type Data Type Required application/x-www-form-urlencoded Submit parameters using form-urlencoded format

# Request Example

POST https://{your_domain}/api/v2/tenant/token

Authorization: Basic UnFCMkhKdGt6bFU...aT0NObkk4NlNOWk9xWA==

Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials

# Request Parameters

Parameter Chinese Name Required Example Value Description
grant_type Grant Type Yes String Fixed value: client_credentials

# Return Example

Correct Return Example
HTTP Status: 200 OK
{
    "access_token": "0d61dde4-c700-4269-b1c9-16b5922ce888",
    "token_type": "bearer",
    "expires_in": 1799,
    "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

# Return Parameters

Parameter Name Chinese Name Type Description
access_token API Call Token String This parameter is required for accessing all subsequent interfaces.
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
id_token Authorization Information String Permission information for application authorization

# Postman Invocation Example