受保护资源元数据,没有令牌时 401 的 WWW-Authenticate 指向这里
GET/.well-known/oauth-protected-resource
| 认证 | 不需要登录 |
|---|---|
| 权限 | 无 |
响应
200
application/json
没有 code、message、data 外壳
resourcestring必填受保护资源标识,是本站 /api/v1
authorization_serversstring[]必填授权服务器,是本站 /oauth
bearer_methods_supportedstring[]必填令牌传递方式
可选值: header
scopes_supportedstring[]必填可申请的权限名
响应示例
{
"resource": "string",
"authorization_servers": [
"string"
],
"bearer_methods_supported": [
"header"
],
"scopes_supported": [
"string"
]
}