NATSoauth.jwks.get读取 JWKS 公钥集
Try it 面板需要启用 JavaScript。
返回 jwt 形态令牌的签名公钥集;apps/openapi 的 /api/v1/oauth/jwks 端点直接代理本结果。
Request Payload
消息格式:JSON
该 jsonschema:parameters 围栏未声明任何属性
Response Payload
回复使用统一信封 {id, code, messages, result},其 result:
| Name | Data Type | Required | Description |
|---|---|---|---|
| keys | array | Yes | 公钥列表(含轮换期内的新旧密钥) |
type ResponseBody = {
/** 公钥列表(含轮换期内的新旧密钥) */
keys: Record<string, unknown>[]
}{
"keys": [
{
"kty": "RSA",
"use": "sig",
"alg": "RS256",
"kid": "2026-09-rotate",
"n": "3dbKQ8v...",
"e": "AQAB"
}
]
}Response Code
回复使用统一信封 {id, code, messages, result},其 code 字段:
| code | Meaning | Notes |
|---|---|---|
| 0 | 成功 | 读取 JWKS 公钥集 |
Examples
{}
{
"id": "01JD8SWWKV0X7YU",
"code": 0,
"messages": [],
"result": {
"keys": [
{
"kty": "RSA",
"use": "sig",
"alg": "RS256",
"kid": "2026-09-rotate",
"n": "3dbKQ8v...",
"e": "AQAB"
}
]
}
}
Remarks
私钥永不出服务边界;轮换周期内新旧公钥并存发布,仅旧令牌自然过期后移除旧钥。