Mengambil token otentikasi JWT menggunakan token pendek turunan.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /v2/{instanceId}/authenticationTokens/_/actions/obtainJwtByDerivedShortToken HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| derivedShortToken |
string |
Yes |
Derived short token for the JWT authentication token. |
sk-Nx2vzxxxxxxxxxxxxxxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Details of the JWT authentication token. |
||
| instanceId |
string |
Instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| authenticationTokenId |
string |
Authentication token ID. |
atntkn_01kqflm0sxxx8nmdc1cb5dskxxxxx |
| credentialProviderId |
string |
Credential provider ID. |
atp_01kr2cmj5gxxx4fvmls2e93dxxxxx |
| createTime |
integer |
Creation time of the authentication token, as a UNIX timestamp in milliseconds. |
1649830225000 |
| updateTime |
integer |
Last update time of the authentication token, as a UNIX timestamp in milliseconds. |
1649830225000 |
| authenticationTokenType |
string |
Type of the authentication token. Catatan
The value is always |
jwt |
| revoked |
boolean |
Indicates whether the authentication token is revoked. |
false |
| creatorType |
string |
Type of the authentication token creator. Valid values:
|
application |
| creatorId |
string |
ID of the authentication token creator. |
app_ngtkgrrxxxxktg5eao6z4xxxxx |
| consumerType |
string |
Type of the authentication token consumer. Valid values:
|
custom |
| consumerId |
string |
ID of the authentication token consumer. |
test_jwt_subject |
| expirationTime |
integer |
Expiration time of the authentication token, as a UNIX timestamp in milliseconds. |
1772693568000 |
| jwtContent |
object |
Content of the JWT authentication token. |
|
| jwtValue |
string |
JWT content. |
eyJhbGciOixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| derivedShortToken |
string |
Derived short token for 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.