Discover where to sign in to this site, and what to ask for.
GET /.well-known/oauth-protected-resource
GET https://dev.zanpki.com/.well-known/oauth-protected-resource
| オペレーション ID |
.well-known.oauth-protected-resource.get
|
|---|---|
| アクセス | 全員 |
レスポンス
| ステータス | 説明 | スキーマ | コンテンツタイプ |
|---|---|---|---|
| 200 | The site's protected resource metadata. | ProtectedResourceMetadata | application/json |
| その他のステータス | The request was refused. The problem's type names why, and its detail explains it for people to read. | Problem | application/json |
200 The site's protected resource metadata.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
resource
| string (https-url) | 必須 | This site's URL, which tokens for this site carry as their resource. |
authorization_servers
| list of string (https-url) | 必須 | The issuer that signs tokens for this site. Its discovery document is at /.well-known/openid-configuration under the issuer's URL. |
bearer_methods_supported
| list of string | 必須 | How to send a token: in the Authorization header, as a Bearer token. |
scopes_supported
| list of string | 必須 | The entitlements this site checks. An app can ask for them as scopes. |
その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
type
| string | 必須 | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | 必須 | The HTTP status as text, such as Not Found. |
status
| integer (int32) | 必須 | The HTTP status code of the response. |
detail
| string | 必須 | An explanation of what went wrong, written for people to read. |
instance
| string | 必須 | The path the request was sent to. |
例
curl -X GET 'https://dev.zanpki.com/.well-known/oauth-protected-resource'