Data source to retrieve a specific Auth0 resource server by resource_server_id
or identifier
.
# An Auth0 Resource Server loaded using its identifier.
data "auth0_resource_server" "some-resource-server-by-identifier" {
identifier = "https://my-api.com/v1"
}
# An Auth0 Resource Server loaded using its ID.
data "auth0_resource_server" "some-resource-server-by-id" {
resource_server_id = "abcdefghkijklmnopqrstuvwxyz0123456789"
}
identifier
(String) Unique identifier for the resource server. Used as the audience parameter for authorization calls. If not provided, resource_server_id
must be set.resource_server_id
(String) The ID of the resource server. If not provided, identifier
must be set.allow_offline_access
(Boolean) Indicates whether refresh tokens can be issued for this resource server.enforce_policies
(Boolean) If this setting is enabled, RBAC authorization policies will be enforced for this API. Role and permission assignments will be evaluated during the login transaction.id
(String) The ID of this resource.name
(String) Friendly name for the resource server. Cannot include <
or >
characters.scopes
(Set of Object) List of permissions (scopes) used by this resource server. (see below for nested schema)signing_alg
(String) Algorithm used to sign JWTs. Options include HS256
and RS256
.signing_secret
(String) Secret used to sign tokens when using symmetric algorithms (HS256).skip_consent_for_verifiable_first_party_clients
(Boolean) Indicates whether to skip user consent for applications flagged as first party.token_dialect
(String) Dialect of access tokens that should be issued for this resource server. Options include access_token
or access_token_authz
. If this setting is set to access_token_authz
, the Permissions claim will be added to the access token. Only available if RBAC (enforce_policies
) is enabled for this API.token_lifetime
(Number) Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.token_lifetime_for_web
(Number) Number of seconds during which access tokens issued for this resource server via implicit or hybrid flows remain valid. Cannot be greater than the token_lifetime
value.verification_location
(String) URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.scopes
Read-Only:
description
(String)name
(String)