published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
With this resource, you can set up APIs that can be consumed from your authorized applications.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;
return await Deployment.RunAsync(() =>
{
var myResourceServer = new Auth0.ResourceServer("myResourceServer", new()
{
AllowOfflineAccess = true,
Identifier = "https://api.example.com",
Scopes = new[]
{
new Auth0.Inputs.ResourceServerScopeArgs
{
Description = "Create foos",
Value = "create:foo",
},
new Auth0.Inputs.ResourceServerScopeArgs
{
Description = "Create bars",
Value = "create:bar",
},
},
SigningAlg = "RS256",
SkipConsentForVerifiableFirstPartyClients = true,
TokenLifetime = 8600,
});
});
package main
import (
"github.com/pulumi/pulumi-auth0/sdk/v2/go/auth0"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auth0.NewResourceServer(ctx, "myResourceServer", &auth0.ResourceServerArgs{
AllowOfflineAccess: pulumi.Bool(true),
Identifier: pulumi.String("https://api.example.com"),
Scopes: auth0.ResourceServerScopeTypeArray{
&auth0.ResourceServerScopeTypeArgs{
Description: pulumi.String("Create foos"),
Value: pulumi.String("create:foo"),
},
&auth0.ResourceServerScopeTypeArgs{
Description: pulumi.String("Create bars"),
Value: pulumi.String("create:bar"),
},
},
SigningAlg: pulumi.String("RS256"),
SkipConsentForVerifiableFirstPartyClients: pulumi.Bool(true),
TokenLifetime: pulumi.Int(8600),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.ResourceServer;
import com.pulumi.auth0.ResourceServerArgs;
import com.pulumi.auth0.inputs.ResourceServerScopeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myResourceServer = new ResourceServer("myResourceServer", ResourceServerArgs.builder()
.allowOfflineAccess(true)
.identifier("https://api.example.com")
.scopes(
ResourceServerScopeArgs.builder()
.description("Create foos")
.value("create:foo")
.build(),
ResourceServerScopeArgs.builder()
.description("Create bars")
.value("create:bar")
.build())
.signingAlg("RS256")
.skipConsentForVerifiableFirstPartyClients(true)
.tokenLifetime(8600)
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
const myResourceServer = new auth0.ResourceServer("myResourceServer", {
allowOfflineAccess: true,
identifier: "https://api.example.com",
scopes: [
{
description: "Create foos",
value: "create:foo",
},
{
description: "Create bars",
value: "create:bar",
},
],
signingAlg: "RS256",
skipConsentForVerifiableFirstPartyClients: true,
tokenLifetime: 8600,
});
import pulumi
import pulumi_auth0 as auth0
my_resource_server = auth0.ResourceServer("myResourceServer",
allow_offline_access=True,
identifier="https://api.example.com",
scopes=[
auth0.ResourceServerScopeArgs(
description="Create foos",
value="create:foo",
),
auth0.ResourceServerScopeArgs(
description="Create bars",
value="create:bar",
),
],
signing_alg="RS256",
skip_consent_for_verifiable_first_party_clients=True,
token_lifetime=8600)
resources:
myResourceServer:
type: auth0:ResourceServer
properties:
allowOfflineAccess: true
identifier: https://api.example.com
scopes:
- description: Create foos
value: create:foo
- description: Create bars
value: create:bar
signingAlg: RS256
skipConsentForVerifiableFirstPartyClients: true
tokenLifetime: 8600
Create ResourceServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceServer(name: string, args: ResourceServerArgs, opts?: CustomResourceOptions);@overload
def ResourceServer(resource_name: str,
args: ResourceServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
allow_offline_access: Optional[bool] = None,
enforce_policies: Optional[bool] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[ResourceServerScopeArgs]] = None,
signing_alg: Optional[str] = None,
signing_secret: Optional[str] = None,
skip_consent_for_verifiable_first_party_clients: Optional[bool] = None,
token_dialect: Optional[str] = None,
token_lifetime: Optional[int] = None,
token_lifetime_for_web: Optional[int] = None,
verification_location: Optional[str] = None)func NewResourceServer(ctx *Context, name string, args ResourceServerArgs, opts ...ResourceOption) (*ResourceServer, error)public ResourceServer(string name, ResourceServerArgs args, CustomResourceOptions? opts = null)
public ResourceServer(String name, ResourceServerArgs args)
public ResourceServer(String name, ResourceServerArgs args, CustomResourceOptions options)
type: auth0:ResourceServer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ResourceServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ResourceServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ResourceServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var resourceServerResource = new Auth0.ResourceServer("resourceServerResource", new()
{
Identifier = "string",
AllowOfflineAccess = false,
EnforcePolicies = false,
Name = "string",
SigningAlg = "string",
SigningSecret = "string",
SkipConsentForVerifiableFirstPartyClients = false,
TokenDialect = "string",
TokenLifetime = 0,
TokenLifetimeForWeb = 0,
VerificationLocation = "string",
});
example, err := auth0.NewResourceServer(ctx, "resourceServerResource", &auth0.ResourceServerArgs{
Identifier: pulumi.String("string"),
AllowOfflineAccess: pulumi.Bool(false),
EnforcePolicies: pulumi.Bool(false),
Name: pulumi.String("string"),
SigningAlg: pulumi.String("string"),
SigningSecret: pulumi.String("string"),
SkipConsentForVerifiableFirstPartyClients: pulumi.Bool(false),
TokenDialect: pulumi.String("string"),
TokenLifetime: pulumi.Int(0),
TokenLifetimeForWeb: pulumi.Int(0),
VerificationLocation: pulumi.String("string"),
})
var resourceServerResource = new ResourceServer("resourceServerResource", ResourceServerArgs.builder()
.identifier("string")
.allowOfflineAccess(false)
.enforcePolicies(false)
.name("string")
.signingAlg("string")
.signingSecret("string")
.skipConsentForVerifiableFirstPartyClients(false)
.tokenDialect("string")
.tokenLifetime(0)
.tokenLifetimeForWeb(0)
.verificationLocation("string")
.build());
resource_server_resource = auth0.ResourceServer("resourceServerResource",
identifier="string",
allow_offline_access=False,
enforce_policies=False,
name="string",
signing_alg="string",
signing_secret="string",
skip_consent_for_verifiable_first_party_clients=False,
token_dialect="string",
token_lifetime=0,
token_lifetime_for_web=0,
verification_location="string")
const resourceServerResource = new auth0.ResourceServer("resourceServerResource", {
identifier: "string",
allowOfflineAccess: false,
enforcePolicies: false,
name: "string",
signingAlg: "string",
signingSecret: "string",
skipConsentForVerifiableFirstPartyClients: false,
tokenDialect: "string",
tokenLifetime: 0,
tokenLifetimeForWeb: 0,
verificationLocation: "string",
});
type: auth0:ResourceServer
properties:
allowOfflineAccess: false
enforcePolicies: false
identifier: string
name: string
signingAlg: string
signingSecret: string
skipConsentForVerifiableFirstPartyClients: false
tokenDialect: string
tokenLifetime: 0
tokenLifetimeForWeb: 0
verificationLocation: string
ResourceServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourceServer resource accepts the following input properties:
- Identifier string
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- Allow
Offline boolAccess - Indicates whether refresh tokens can be issued for this resource server.
- Enforce
Policies bool - 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.
- Name string
- Friendly name for the resource server. Cannot include
<or>characters. - Scopes
List<Resource
Server Scope> - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - Signing
Alg string - Algorithm used to sign JWTs. Options include
HS256andRS256. - Signing
Secret string - Secret used to sign tokens when using symmetric algorithms (HS256).
- Skip
Consent boolFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 int - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- Token
Lifetime intFor Web - 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_lifetimevalue. - Verification
Location string - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- Identifier string
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- Allow
Offline boolAccess - Indicates whether refresh tokens can be issued for this resource server.
- Enforce
Policies bool - 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.
- Name string
- Friendly name for the resource server. Cannot include
<or>characters. - Scopes
[]Resource
Server Scope Type Args - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - Signing
Alg string - Algorithm used to sign JWTs. Options include
HS256andRS256. - Signing
Secret string - Secret used to sign tokens when using symmetric algorithms (HS256).
- Skip
Consent boolFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 int - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- Token
Lifetime intFor Web - 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_lifetimevalue. - Verification
Location string - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- identifier String
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- allow
Offline BooleanAccess - 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.
- name String
- Friendly name for the resource server. Cannot include
<or>characters. - scopes
List<Resource
Server Scope> - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing
Alg String - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing
Secret String - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip
Consent BooleanFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 Integer - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- token
Lifetime IntegerFor Web - 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_lifetimevalue. - verification
Location String - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- identifier string
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- allow
Offline booleanAccess - 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.
- name string
- Friendly name for the resource server. Cannot include
<or>characters. - scopes
Resource
Server Scope[] - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing
Alg string - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing
Secret string - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip
Consent booleanFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 numberFor Web - 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_lifetimevalue. - verification
Location string - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- identifier str
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- allow_
offline_ boolaccess - Indicates whether refresh tokens can be issued for this resource server.
- enforce_
policies bool - 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.
- name str
- Friendly name for the resource server. Cannot include
<or>characters. - scopes
Sequence[Resource
Server Scope Args] - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing_
alg str - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing_
secret str - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip_
consent_ boolfor_ verifiable_ first_ party_ clients - Indicates whether to skip user consent for applications flagged as first party.
- token_
dialect str - Dialect of access tokens that should be issued for this resource server. Options include
access_tokenoraccess_token_authz. If this setting is set toaccess_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 int - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- token_
lifetime_ intfor_ web - 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_lifetimevalue. - verification_
location str - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- identifier String
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- allow
Offline BooleanAccess - 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.
- name String
- Friendly name for the resource server. Cannot include
<or>characters. - scopes List<Property Map>
- List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing
Alg String - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing
Secret String - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip
Consent BooleanFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 NumberFor Web - 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_lifetimevalue. - verification
Location String - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceServer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ResourceServer Resource
Get an existing ResourceServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ResourceServerState, opts?: CustomResourceOptions): ResourceServer@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_offline_access: Optional[bool] = None,
enforce_policies: Optional[bool] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[ResourceServerScopeArgs]] = None,
signing_alg: Optional[str] = None,
signing_secret: Optional[str] = None,
skip_consent_for_verifiable_first_party_clients: Optional[bool] = None,
token_dialect: Optional[str] = None,
token_lifetime: Optional[int] = None,
token_lifetime_for_web: Optional[int] = None,
verification_location: Optional[str] = None) -> ResourceServerfunc GetResourceServer(ctx *Context, name string, id IDInput, state *ResourceServerState, opts ...ResourceOption) (*ResourceServer, error)public static ResourceServer Get(string name, Input<string> id, ResourceServerState? state, CustomResourceOptions? opts = null)public static ResourceServer get(String name, Output<String> id, ResourceServerState state, CustomResourceOptions options)resources: _: type: auth0:ResourceServer get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allow
Offline boolAccess - Indicates whether refresh tokens can be issued for this resource server.
- Enforce
Policies bool - 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.
- Identifier string
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- Name string
- Friendly name for the resource server. Cannot include
<or>characters. - Scopes
List<Resource
Server Scope> - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - Signing
Alg string - Algorithm used to sign JWTs. Options include
HS256andRS256. - Signing
Secret string - Secret used to sign tokens when using symmetric algorithms (HS256).
- Skip
Consent boolFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 int - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- Token
Lifetime intFor Web - 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_lifetimevalue. - Verification
Location string - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- Allow
Offline boolAccess - Indicates whether refresh tokens can be issued for this resource server.
- Enforce
Policies bool - 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.
- Identifier string
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- Name string
- Friendly name for the resource server. Cannot include
<or>characters. - Scopes
[]Resource
Server Scope Type Args - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - Signing
Alg string - Algorithm used to sign JWTs. Options include
HS256andRS256. - Signing
Secret string - Secret used to sign tokens when using symmetric algorithms (HS256).
- Skip
Consent boolFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 int - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- Token
Lifetime intFor Web - 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_lifetimevalue. - Verification
Location string - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- allow
Offline BooleanAccess - 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.
- identifier String
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- name String
- Friendly name for the resource server. Cannot include
<or>characters. - scopes
List<Resource
Server Scope> - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing
Alg String - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing
Secret String - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip
Consent BooleanFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 Integer - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- token
Lifetime IntegerFor Web - 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_lifetimevalue. - verification
Location String - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- allow
Offline booleanAccess - 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.
- identifier string
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- name string
- Friendly name for the resource server. Cannot include
<or>characters. - scopes
Resource
Server Scope[] - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing
Alg string - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing
Secret string - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip
Consent booleanFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 numberFor Web - 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_lifetimevalue. - verification
Location string - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- allow_
offline_ boolaccess - Indicates whether refresh tokens can be issued for this resource server.
- enforce_
policies bool - 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.
- identifier str
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- name str
- Friendly name for the resource server. Cannot include
<or>characters. - scopes
Sequence[Resource
Server Scope Args] - List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing_
alg str - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing_
secret str - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip_
consent_ boolfor_ verifiable_ first_ party_ clients - Indicates whether to skip user consent for applications flagged as first party.
- token_
dialect str - Dialect of access tokens that should be issued for this resource server. Options include
access_tokenoraccess_token_authz. If this setting is set toaccess_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 int - Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
- token_
lifetime_ intfor_ web - 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_lifetimevalue. - verification_
location str - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
- allow
Offline BooleanAccess - 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.
- identifier String
- Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
- name String
- Friendly name for the resource server. Cannot include
<or>characters. - scopes List<Property Map>
- List of permissions (scopes) used by this resource server. Managing scopes through the
scopesattribute is deprecated and it will be removed in a future major version. Migrate to theauth0_resource_server_scopeorauth0_resource_server_scopesresources to manage role scopes instead. Check the MIGRATION GUIDE for more info. - signing
Alg String - Algorithm used to sign JWTs. Options include
HS256andRS256. - signing
Secret String - Secret used to sign tokens when using symmetric algorithms (HS256).
- skip
Consent BooleanFor Verifiable First Party Clients - 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_tokenoraccess_token_authz. If this setting is set toaccess_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 NumberFor Web - 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_lifetimevalue. - verification
Location String - URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
Supporting Types
ResourceServerScope, ResourceServerScopeArgs
- Value string
- Name of the permission (scope). Examples include
read:appointmentsordelete:appointments. - Description string
- Description of the permission (scope).
- Value string
- Name of the permission (scope). Examples include
read:appointmentsordelete:appointments. - Description string
- Description of the permission (scope).
- value String
- Name of the permission (scope). Examples include
read:appointmentsordelete:appointments. - description String
- Description of the permission (scope).
- value string
- Name of the permission (scope). Examples include
read:appointmentsordelete:appointments. - description string
- Description of the permission (scope).
- value str
- Name of the permission (scope). Examples include
read:appointmentsordelete:appointments. - description str
- Description of the permission (scope).
- value String
- Name of the permission (scope). Examples include
read:appointmentsordelete:appointments. - description String
- Description of the permission (scope).
Import
Existing resource servers can be imported using their ID. # Example
$ pulumi import auth0:index/resourceServer:ResourceServer my_resource_server XXXXXXXXXXXXXXXXXXXXXXX
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Auth0 pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
auth0Terraform Provider.
published on Monday, Mar 9, 2026 by Pulumi
