tencent cloud

Customer Identity and Access Management

Product Introduction
Overview
Strengths
Use Cases
Purchase Guide
Operation Guide
User pool management
User management
Application management
Authentication management
Audit management
Custom settings
Development Guide
Overview
Access via Authentication API
Get User Information
Update User Information
Modify User Password
Reset User Password
Get Token
Get JWT Public Key
Refresh Token
Revoke Token
Get OpenID Provider Configuration
API Documentation
History
Introduction
API Category
Making API Requests
User Management APIs
Data Sync APIs
Audit Management APIs
Data Types
Error Codes
FAQs
Features
Billing
CIAM Policy
Privacy Policy
Data Processing And Security Agreement

Get JWT Public Key

PDF
Focus Mode
Font Size
Last updated: 2023-12-22 11:42:07

API Description

This API is used to use the JSON Web Token (JWT) public key to verify the ID Token and Access Token in JWT format.
Note:
The JWT key is automatically generated when the user directory is created, and the key is different for different user directories.

Supported Applications

Web applications, single-page applications (SPA), mobile applications, and machine-to-machine (M2M) applications.

Request Method

GET

Request Path

/oauth2/jwks

Sample Requests

GET /oauth2/jwks HTTP/1.1
Host: sample.portal.tencentciam.com

Sample Success Responses

HTTP/1.1 200 OK
Content-Type: application/json

{
"Keys" : [ {
"kty" : "RSA",
"e" : "AQAB",
"kid" : "f9694d93-d541-4985-88dc-42229873008e",
"n" : "wYmf-IL7_pXqEjtfHme7KqS06hRQ0BzhTzORjgwnsJD_CPexMHQAd82vZfOQioW9oaMXTiSAtkXslxNIxKVjiYMVzTLHQ9nqCARHOAONiftvcOyMiDGwI_ZV2u2ltHCbQ1w8sMpREMxLiW46TYHANSQwgzg9gLojhzPEUmAS0ksTx3UURmQGLnFBEh6Ydbj8tPNnNxfZHRLtqTD0FwLpPrn3wJvQRxNk_fcrJexM5v96XdQ1SLhhcIAMyqU-_-3IkyWIcS-Z-EvZCiKNJPCfVIEpWdz0oQdGXdADSRU8cV_sl-YmUWSE355PSzK1UmbvNJWLMsO67ZsgZyetcvkaIw"
} ]
}

Response Parameters

Parameter
Data Type
Description
keys
Array
An array of public keys.
keys[].kty
String
Key type, such as RSA.
keys[].kid
String
Key identifier.
keys[].e
String
RSA public key.
keys[].n
String
RSA public key.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback