Employee Identity (EIAM)

Authentication Interface

Interface

The SSO interface is a service call interface; the authentication interface must be called first before calling it.

# Request Specification

Request URL https://{your_domain}/api/v2/tenant/token

Request Method POST

Content-Type 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 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": "e665e923-9904",
    "token_type": "bearer",
    "expires_in": 1719,
    "scope": "all",
    "id_token": "eyJraWQiOiJrMSIs.eyJQwWVz_YCkkp9QOrwNYo.ELddR0qhM2jyVUQXgNupYWNtS"
}
1
2
3
4
5
6
7
8
9
10

# Response Parameters

Parameter Chinese Name Type Description
access_token Token for calling interfaces String When calling other SSO interfaces, this value must be placed in the request header
token_type Token Type String
expires_in Expiration Time Number
scope Permission Scope String
id_token Generated id_token String

I'm ready. Please provide the Markdown content you need translated.