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,
)
}{
"id": "<string>",
"name": "<string>",
"is_system": true,
"identifier": "<string>",
"scopes": [
{
"value": "<string>",
"description": "<string>"
}
],
"signing_alg": "HS256",
"signing_secret": "<string>",
"allow_offline_access": true,
"allow_online_access": true,
"allow_online_access_with_ephemeral_sessions": true,
"skip_consent_for_verifiable_first_party_clients": true,
"token_lifetime": 123,
"token_lifetime_for_web": 123,
"enforce_policies": true,
"token_dialect": "access_token",
"token_encryption": {
"format": "compact-nested-jwe",
"encryption_key": {
"alg": "RSA-OAEP-256",
"pem": "-----BEGIN PUBLIC KEY-----\r\nMIIBIjANBg...\r\n-----END PUBLIC KEY-----\r\n",
"name": "<string>",
"kid": "<string>"
}
},
"consent_policy": "transactional-authorization-with-mfa",
"authorization_details": [
"<unknown>"
],
"proof_of_possession": {
"mechanism": "mtls",
"required": true,
"required_for": "public_clients"
},
"subject_type_authorization": {
"user": {
"policy": "allow_all"
},
"client": {
"policy": "deny_all"
}
},
"authorization_policy": {
"policy_id": "<string>"
},
"client_id": "<string>"
}Retrieve API details with the given ID.
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,
)
}{
"id": "<string>",
"name": "<string>",
"is_system": true,
"identifier": "<string>",
"scopes": [
{
"value": "<string>",
"description": "<string>"
}
],
"signing_alg": "HS256",
"signing_secret": "<string>",
"allow_offline_access": true,
"allow_online_access": true,
"allow_online_access_with_ephemeral_sessions": true,
"skip_consent_for_verifiable_first_party_clients": true,
"token_lifetime": 123,
"token_lifetime_for_web": 123,
"enforce_policies": true,
"token_dialect": "access_token",
"token_encryption": {
"format": "compact-nested-jwe",
"encryption_key": {
"alg": "RSA-OAEP-256",
"pem": "-----BEGIN PUBLIC KEY-----\r\nMIIBIjANBg...\r\n-----END PUBLIC KEY-----\r\n",
"name": "<string>",
"kid": "<string>"
}
},
"consent_policy": "transactional-authorization-with-mfa",
"authorization_details": [
"<unknown>"
],
"proof_of_possession": {
"mechanism": "mtls",
"required": true,
"required_for": "public_clients"
},
"subject_type_authorization": {
"user": {
"policy": "allow_all"
},
"client": {
"policy": "deny_all"
}
},
"authorization_policy": {
"policy_id": "<string>"
},
"client_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-tenant-logs-explorer.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID or audience of the resource server to retrieve.
Whether specified fields are to be included (true) or excluded (false).
Resource server successfully retrieved.
ID of the API (resource server).
Friendly name for this resource server. Can not contain < or > characters.
Whether this is an Auth0 system API (true) or a custom API (false).
Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set.
List of permissions (scopes) that this API uses.
Show child attributes
Algorithm used to sign JWTs. Can be HS256 (default) or RS256. PS256 available via addon.
HS256, RS256, RS512, PS256 Secret used to sign tokens when using symmetric algorithms (HS256).
16Whether refresh tokens can be issued for this API (true) or not (false).
Whether Online Refresh Tokens can be issued for this API (true) or not (false).
Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false).
Whether to skip user consent for applications flagged as first party (true) or not (false).
Expiration value (in seconds) for access tokens issued for this API from the token endpoint.
Expiration value (in seconds) for access tokens issued for this API via Implicit or Hybrid Flows. Cannot be greater than the token_lifetime value.
Whether authorization polices are enforced (true) or unenforced (false).
Dialect of access tokens that should be issued. access_token is a JWT containing standard Auth0 claims; rfc9068_profile is a JWT conforming to the IETF JWT Access Token Profile. access_token_authz and rfc9068_profile_authz additionally include RBAC permissions claims.
access_token, access_token_authz, rfc9068_profile, rfc9068_profile_authz Show child attributes
transactional-authorization-with-mfa, null Proof-of-Possession configuration for access tokens
Show child attributes
Defines application access permission for a resource server
Show child attributes
Authorization policy for the resource server.
Show child attributes
The client ID of the client that this resource server is linked to
このページは役に立ちましたか?