All Products
Search
Document Center

Identity as a Service:ObtainJwtAuthenticationToken

Last Updated:Jun 10, 2026

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.

Catatan

The corresponding scope is urn:cloud:idaas:pam|authentication_token:obtain.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

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 Bearer ${access_token}.

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, indicating a JWT-based authentication token.

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: The token was created by an application.

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:

  • application: The token is consumed by an application.

  • custom: Indicates a user-defined consumer.

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.