メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
resource-servers
/
{id}
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &management.GetResourceServerRequestParameters{
        IncludeFields: management.Bool(
            true,
        ),
    }
    client.ResourceServers.Get(
        context.TODO(),
        "id",
        request,
    )
}
{
  "allow_offline_access": true,
  "allow_online_access": true,
  "allow_online_access_with_ephemeral_sessions": true,
  "authorization_details": [
    "<unknown>"
  ],
  "authorization_policy": {
    "policy_id": "<string>"
  },
  "client_id": "<string>",
  "enforce_policies": true,
  "id": "<string>",
  "identifier": "<string>",
  "is_system": true,
  "name": "<string>",
  "proof_of_possession": {
    "required": true
  },
  "scopes": [
    {
      "value": "<string>",
      "description": "<string>"
    }
  ],
  "signing_alg": "HS256",
  "signing_secret": "<string>",
  "skip_consent_for_verifiable_first_party_clients": true,
  "subject_type_authorization": {
    "client": {},
    "user": {}
  },
  "token_encryption": {
    "encryption_key": {
      "pem": "-----BEGIN PUBLIC KEY-----\r\nMIIBIjANBg...\r\n-----END PUBLIC KEY-----\r\n",
      "kid": "<string>",
      "name": "<string>"
    }
  },
  "token_lifetime": 123,
  "token_lifetime_for_web": 123
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

取得するリソースサーバーの ID またはオーディエンス。

クエリパラメータ

include_fields
boolean

指定したフィールドを含めるか(true)、除外するか(false)を指定します。

レスポンス

リソースサーバーを正常に取得しました。

allow_offline_access
boolean

この API に対してリフレッシュトークンを発行できるかどうか(true / false)。

allow_online_access
boolean

この API に対して Online Refresh Tokens を発行できるかどうか(true / false)。

allow_online_access_with_ephemeral_sessions
boolean

セッションがエフェメラルに設定されている場合でも、Online Refresh Tokens を発行できるかどうか(true / false)。

authorization_details
any[] | null
authorization_policy
object
EA

リソースサーバーの認可ポリシー。

client_id
string<client-id>

このリソースサーバーにリンクされているクライアントのクライアントID

利用可能なオプション:
transactional-authorization-with-mfa,
null
enforce_policies
boolean

認可ポリシーが適用される(true)か、適用されない(false)か。

id
string

API(リソースサーバー)の ID です。

identifier
string

認可リクエストで audience パラメーターとして使用される API の一意の識別子。設定後は変更できません。

is_system
boolean

これが Auth0 のシステム API(true)か、カスタム API(false)か。

name
string

このリソースサーバーのフレンドリ名。< または > の文字は使用できません。

proof_of_possession
object

アクセストークンの所有証明の設定

scopes
object[]

この API で使用する権限(スコープ)の一覧。

signing_alg
enum<string>
デフォルト:HS256

JWT の署名に使用するアルゴリズム。HS256(デフォルト)または RS256 を指定できます。PS256 はアドオンで利用できます。

利用可能なオプション:
HS256,
RS256,
RS512,
PS256
signing_secret
string

対称アルゴリズム(HS256)を使用する際に、トークンの署名に使用するシークレット。

Minimum string length: 16

ファーストパーティとしてフラグ付けされたアプリケーションで、ユーザーの同意をスキップするかどうか(true / false)。

subject_type_authorization
object

リソースサーバーに対するアプリケーションのアクセス権限を定義します

token_dialect
enum<string>

発行するアクセストークンの方言。access_token は標準の Auth0 クレームを含む JWT です。rfc9068_profile は IETF JWT Access Token Profile に準拠した JWT です。access_token_authzrfc9068_profile_authz には、RBAC の permissions クレームも追加で含まれます。

利用可能なオプション:
access_token,
access_token_authz,
rfc9068_profile,
rfc9068_profile_authz
token_encryption
object
token_lifetime
integer

トークンエンドポイントからこの API 用に発行されるアクセストークンの有効期限の値(秒)。

token_lifetime_for_web
integer

Implicit または Hybrid Flow 経由でこの API 用に発行されるアクセストークンの有効期限の値(秒)。token_lifetime の値を超えることはできません。