Mengambil token otentikasi JWT.
Deskripsi operasi
This API requires an access token issued by IDaaS for authentication and authorization.
The provided access token must have permission to obtain authentication tokens for the built-in privileged access management (PAM) application in IDaaS.
The corresponding scope is urn:cloud:idaas:pam|authentication_token:obtain.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /v2/{instanceId}/authenticationTokens/_/actions/obtainJwt HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Authorization |
string |
Yes |
Kredensial otentikasi. Formatnya adalah Catatan
Gunakan token akses yang diterbitkan oleh IDaaS. |
Bearer xxxxxx |
| body |
object |
No |
Badan permintaan. |
|
| consumerId |
string |
Yes |
The ID of the authentication token consumer. |
test_jwt_subject |
| authenticationTokenId |
string |
Yes |
The ID of the authentication token. |
atntkn_01kqflm0sxxx8nmdc1cb5dskxxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The details of the JWT authentication token. |
||
| instanceId |
string |
The ID of the instance. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| authenticationTokenId |
string |
The ID of the authentication token. |
atntkn_01kqflm0sxxx8nmdc1cb5dskxxxxx |
| credentialProviderId |
string |
The ID of the credential provider. |
atp_01kr2cmj5gxxx4fvmls2e93dxxxxx |
| createTime |
integer |
The creation time of the authentication token, provided as a Unix timestamp in milliseconds. |
1649830225000 |
| updateTime |
integer |
The time the authentication token was last updated, provided as a Unix timestamp in milliseconds. |
1649830225000 |
| authenticationTokenType |
string |
The type of the authentication token. Catatan
The value is always |
jwt |
| revoked |
boolean |
Indicates whether the authentication token has been revoked. |
false |
| creatorType |
string |
The type of the entity that created the authentication token. Valid value:
|
application |
| creatorId |
string |
The ID of the authentication token's creator. |
app_ngtkgrrxxxxktg5eao6z4xxxxx |
| consumerType |
string |
The type of entity that consumes the authentication token. Valid values:
|
custom |
| consumerId |
string |
The ID of the authentication token consumer. |
test_jwt_subject |
| expirationTime |
integer |
The expiration time of the authentication token, provided as a Unix timestamp in milliseconds. |
1772693568000 |
| jwtContent |
object |
The content of the JWT-based authentication token. |
|
| jwtValue |
string |
The JWT content. |
eyJhbGciOixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| derivedShortToken |
string |
A short token derived from the JWT. |
sk-Nx2vzxxxxxxxxxxxxxxxxx |
Contoh
Respons sukses
JSONformat
{
"instanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"authenticationTokenId": "atntkn_01kqflm0sxxx8nmdc1cb5dskxxxxx",
"credentialProviderId": "atp_01kr2cmj5gxxx4fvmls2e93dxxxxx",
"createTime": 1649830225000,
"updateTime": 1649830225000,
"authenticationTokenType": "jwt",
"revoked": false,
"creatorType": "application",
"creatorId": "app_ngtkgrrxxxxktg5eao6z4xxxxx",
"consumerType": "custom",
"consumerId": "test_jwt_subject",
"expirationTime": 1772693568000,
"jwtContent": {
"jwtValue": "eyJhbGciOixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"derivedShortToken": "sk-Nx2vzxxxxxxxxxxxxxxxxx"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.