auth0.ClientGrant
Explore with Pulumi AI
Auth0 uses various grant types, or methods by which you grant limited access to your resources to another entity without exposing credentials. The OAuth 2.0 protocol supports several types of grants, which allow different types of access. This resource allows you to create and manage client grants used with configured Auth0 clients.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
// The following example grants a client the "create:foo" and "create:bar" permissions (scopes).
const myClient = new auth0.Client("my_client", {name: "Example Application - Client Grant (Managed by Terraform)"});
const myResourceServer = new auth0.ResourceServer("my_resource_server", {
name: "Example Resource Server - Client Grant (Managed by Terraform)",
identifier: "https://api.example.com/client-grant",
authorizationDetails: [
{
type: "payment",
},
{
type: "shipping",
},
],
subjectTypeAuthorization: {
user: {
policy: "allow_all",
},
client: {
policy: "require_client_grant",
},
},
});
const myScopes = new auth0.ResourceServerScopes("my_scopes", {
resourceServerIdentifier: myResourceServer.identifier,
scopes: [
{
name: "read:foo",
description: "Can read Foo",
},
{
name: "create:foo",
description: "Can create Foo",
},
],
}, {
dependsOn: [myResourceServer],
});
const myClientGrant = new auth0.ClientGrant("my_client_grant", {
clientId: myClient.id,
audience: myResourceServer.identifier,
scopes: [
"create:foo",
"read:foo",
],
subjectType: "user",
authorizationDetailsTypes: [
"payment",
"shipping",
],
});
import pulumi
import pulumi_auth0 as auth0
# The following example grants a client the "create:foo" and "create:bar" permissions (scopes).
my_client = auth0.Client("my_client", name="Example Application - Client Grant (Managed by Terraform)")
my_resource_server = auth0.ResourceServer("my_resource_server",
name="Example Resource Server - Client Grant (Managed by Terraform)",
identifier="https://api.example.com/client-grant",
authorization_details=[
{
"type": "payment",
},
{
"type": "shipping",
},
],
subject_type_authorization={
"user": {
"policy": "allow_all",
},
"client": {
"policy": "require_client_grant",
},
})
my_scopes = auth0.ResourceServerScopes("my_scopes",
resource_server_identifier=my_resource_server.identifier,
scopes=[
{
"name": "read:foo",
"description": "Can read Foo",
},
{
"name": "create:foo",
"description": "Can create Foo",
},
],
opts = pulumi.ResourceOptions(depends_on=[my_resource_server]))
my_client_grant = auth0.ClientGrant("my_client_grant",
client_id=my_client.id,
audience=my_resource_server.identifier,
scopes=[
"create:foo",
"read:foo",
],
subject_type="user",
authorization_details_types=[
"payment",
"shipping",
])
package main
import (
"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// The following example grants a client the "create:foo" and "create:bar" permissions (scopes).
myClient, err := auth0.NewClient(ctx, "my_client", &auth0.ClientArgs{
Name: pulumi.String("Example Application - Client Grant (Managed by Terraform)"),
})
if err != nil {
return err
}
myResourceServer, err := auth0.NewResourceServer(ctx, "my_resource_server", &auth0.ResourceServerArgs{
Name: pulumi.String("Example Resource Server - Client Grant (Managed by Terraform)"),
Identifier: pulumi.String("https://api.example.com/client-grant"),
AuthorizationDetails: auth0.ResourceServerAuthorizationDetailArray{
&auth0.ResourceServerAuthorizationDetailArgs{
Type: pulumi.String("payment"),
},
&auth0.ResourceServerAuthorizationDetailArgs{
Type: pulumi.String("shipping"),
},
},
SubjectTypeAuthorization: &auth0.ResourceServerSubjectTypeAuthorizationArgs{
User: &auth0.ResourceServerSubjectTypeAuthorizationUserArgs{
Policy: pulumi.String("allow_all"),
},
Client: &auth0.ResourceServerSubjectTypeAuthorizationClientArgs{
Policy: pulumi.String("require_client_grant"),
},
},
})
if err != nil {
return err
}
_, err = auth0.NewResourceServerScopes(ctx, "my_scopes", &auth0.ResourceServerScopesArgs{
ResourceServerIdentifier: myResourceServer.Identifier,
Scopes: auth0.ResourceServerScopesScopeArray{
&auth0.ResourceServerScopesScopeArgs{
Name: pulumi.String("read:foo"),
Description: pulumi.String("Can read Foo"),
},
&auth0.ResourceServerScopesScopeArgs{
Name: pulumi.String("create:foo"),
Description: pulumi.String("Can create Foo"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
myResourceServer,
}))
if err != nil {
return err
}
_, err = auth0.NewClientGrant(ctx, "my_client_grant", &auth0.ClientGrantArgs{
ClientId: myClient.ID(),
Audience: myResourceServer.Identifier,
Scopes: pulumi.StringArray{
pulumi.String("create:foo"),
pulumi.String("read:foo"),
},
SubjectType: pulumi.String("user"),
AuthorizationDetailsTypes: pulumi.StringArray{
pulumi.String("payment"),
pulumi.String("shipping"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;
return await Deployment.RunAsync(() =>
{
// The following example grants a client the "create:foo" and "create:bar" permissions (scopes).
var myClient = new Auth0.Client("my_client", new()
{
Name = "Example Application - Client Grant (Managed by Terraform)",
});
var myResourceServer = new Auth0.ResourceServer("my_resource_server", new()
{
Name = "Example Resource Server - Client Grant (Managed by Terraform)",
Identifier = "https://api.example.com/client-grant",
AuthorizationDetails = new[]
{
new Auth0.Inputs.ResourceServerAuthorizationDetailArgs
{
Type = "payment",
},
new Auth0.Inputs.ResourceServerAuthorizationDetailArgs
{
Type = "shipping",
},
},
SubjectTypeAuthorization = new Auth0.Inputs.ResourceServerSubjectTypeAuthorizationArgs
{
User = new Auth0.Inputs.ResourceServerSubjectTypeAuthorizationUserArgs
{
Policy = "allow_all",
},
Client = new Auth0.Inputs.ResourceServerSubjectTypeAuthorizationClientArgs
{
Policy = "require_client_grant",
},
},
});
var myScopes = new Auth0.ResourceServerScopes("my_scopes", new()
{
ResourceServerIdentifier = myResourceServer.Identifier,
Scopes = new[]
{
new Auth0.Inputs.ResourceServerScopesScopeArgs
{
Name = "read:foo",
Description = "Can read Foo",
},
new Auth0.Inputs.ResourceServerScopesScopeArgs
{
Name = "create:foo",
Description = "Can create Foo",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
myResourceServer,
},
});
var myClientGrant = new Auth0.ClientGrant("my_client_grant", new()
{
ClientId = myClient.Id,
Audience = myResourceServer.Identifier,
Scopes = new[]
{
"create:foo",
"read:foo",
},
SubjectType = "user",
AuthorizationDetailsTypes = new[]
{
"payment",
"shipping",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.Client;
import com.pulumi.auth0.ClientArgs;
import com.pulumi.auth0.ResourceServer;
import com.pulumi.auth0.ResourceServerArgs;
import com.pulumi.auth0.inputs.ResourceServerAuthorizationDetailArgs;
import com.pulumi.auth0.inputs.ResourceServerSubjectTypeAuthorizationArgs;
import com.pulumi.auth0.inputs.ResourceServerSubjectTypeAuthorizationUserArgs;
import com.pulumi.auth0.inputs.ResourceServerSubjectTypeAuthorizationClientArgs;
import com.pulumi.auth0.ResourceServerScopes;
import com.pulumi.auth0.ResourceServerScopesArgs;
import com.pulumi.auth0.inputs.ResourceServerScopesScopeArgs;
import com.pulumi.auth0.ClientGrant;
import com.pulumi.auth0.ClientGrantArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
// The following example grants a client the "create:foo" and "create:bar" permissions (scopes).
var myClient = new Client("myClient", ClientArgs.builder()
.name("Example Application - Client Grant (Managed by Terraform)")
.build());
var myResourceServer = new ResourceServer("myResourceServer", ResourceServerArgs.builder()
.name("Example Resource Server - Client Grant (Managed by Terraform)")
.identifier("https://api.example.com/client-grant")
.authorizationDetails(
ResourceServerAuthorizationDetailArgs.builder()
.type("payment")
.build(),
ResourceServerAuthorizationDetailArgs.builder()
.type("shipping")
.build())
.subjectTypeAuthorization(ResourceServerSubjectTypeAuthorizationArgs.builder()
.user(ResourceServerSubjectTypeAuthorizationUserArgs.builder()
.policy("allow_all")
.build())
.client(ResourceServerSubjectTypeAuthorizationClientArgs.builder()
.policy("require_client_grant")
.build())
.build())
.build());
var myScopes = new ResourceServerScopes("myScopes", ResourceServerScopesArgs.builder()
.resourceServerIdentifier(myResourceServer.identifier())
.scopes(
ResourceServerScopesScopeArgs.builder()
.name("read:foo")
.description("Can read Foo")
.build(),
ResourceServerScopesScopeArgs.builder()
.name("create:foo")
.description("Can create Foo")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(myResourceServer)
.build());
var myClientGrant = new ClientGrant("myClientGrant", ClientGrantArgs.builder()
.clientId(myClient.id())
.audience(myResourceServer.identifier())
.scopes(
"create:foo",
"read:foo")
.subjectType("user")
.authorizationDetailsTypes(
"payment",
"shipping")
.build());
}
}
resources:
# The following example grants a client the "create:foo" and "create:bar" permissions (scopes).
myClient:
type: auth0:Client
name: my_client
properties:
name: Example Application - Client Grant (Managed by Terraform)
myResourceServer:
type: auth0:ResourceServer
name: my_resource_server
properties:
name: Example Resource Server - Client Grant (Managed by Terraform)
identifier: https://api.example.com/client-grant
authorizationDetails:
- type: payment
- type: shipping
subjectTypeAuthorization:
user:
policy: allow_all
client:
policy: require_client_grant
myScopes:
type: auth0:ResourceServerScopes
name: my_scopes
properties:
resourceServerIdentifier: ${myResourceServer.identifier}
scopes:
- name: read:foo
description: Can read Foo
- name: create:foo
description: Can create Foo
options:
dependsOn:
- ${myResourceServer}
myClientGrant:
type: auth0:ClientGrant
name: my_client_grant
properties:
clientId: ${myClient.id}
audience: ${myResourceServer.identifier}
scopes:
- create:foo
- read:foo
subjectType: user
authorizationDetailsTypes:
- payment
- shipping
Create ClientGrant Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClientGrant(name: string, args: ClientGrantArgs, opts?: CustomResourceOptions);
@overload
def ClientGrant(resource_name: str,
args: ClientGrantArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClientGrant(resource_name: str,
opts: Optional[ResourceOptions] = None,
audience: Optional[str] = None,
client_id: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
allow_any_organization: Optional[bool] = None,
authorization_details_types: Optional[Sequence[str]] = None,
organization_usage: Optional[str] = None,
subject_type: Optional[str] = None)
func NewClientGrant(ctx *Context, name string, args ClientGrantArgs, opts ...ResourceOption) (*ClientGrant, error)
public ClientGrant(string name, ClientGrantArgs args, CustomResourceOptions? opts = null)
public ClientGrant(String name, ClientGrantArgs args)
public ClientGrant(String name, ClientGrantArgs args, CustomResourceOptions options)
type: auth0:ClientGrant
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 ClientGrantArgs
- 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 ClientGrantArgs
- 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 ClientGrantArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClientGrantArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClientGrantArgs
- 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 clientGrantResource = new Auth0.ClientGrant("clientGrantResource", new()
{
Audience = "string",
ClientId = "string",
Scopes = new[]
{
"string",
},
AllowAnyOrganization = false,
AuthorizationDetailsTypes = new[]
{
"string",
},
OrganizationUsage = "string",
SubjectType = "string",
});
example, err := auth0.NewClientGrant(ctx, "clientGrantResource", &auth0.ClientGrantArgs{
Audience: pulumi.String("string"),
ClientId: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
AllowAnyOrganization: pulumi.Bool(false),
AuthorizationDetailsTypes: pulumi.StringArray{
pulumi.String("string"),
},
OrganizationUsage: pulumi.String("string"),
SubjectType: pulumi.String("string"),
})
var clientGrantResource = new ClientGrant("clientGrantResource", ClientGrantArgs.builder()
.audience("string")
.clientId("string")
.scopes("string")
.allowAnyOrganization(false)
.authorizationDetailsTypes("string")
.organizationUsage("string")
.subjectType("string")
.build());
client_grant_resource = auth0.ClientGrant("clientGrantResource",
audience="string",
client_id="string",
scopes=["string"],
allow_any_organization=False,
authorization_details_types=["string"],
organization_usage="string",
subject_type="string")
const clientGrantResource = new auth0.ClientGrant("clientGrantResource", {
audience: "string",
clientId: "string",
scopes: ["string"],
allowAnyOrganization: false,
authorizationDetailsTypes: ["string"],
organizationUsage: "string",
subjectType: "string",
});
type: auth0:ClientGrant
properties:
allowAnyOrganization: false
audience: string
authorizationDetailsTypes:
- string
clientId: string
organizationUsage: string
scopes:
- string
subjectType: string
ClientGrant 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 ClientGrant resource accepts the following input properties:
- Audience string
- Audience or API Identifier for this grant.
- Client
Id string - ID of the client for this grant.
- Scopes List<string>
- Permissions (scopes) included in this grant.
- Allow
Any boolOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- List<string>
- Defines the types of authorization details allowed for this client grant.
- Organization
Usage string - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- Subject
Type string - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- Audience string
- Audience or API Identifier for this grant.
- Client
Id string - ID of the client for this grant.
- Scopes []string
- Permissions (scopes) included in this grant.
- Allow
Any boolOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- []string
- Defines the types of authorization details allowed for this client grant.
- Organization
Usage string - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- Subject
Type string - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- audience String
- Audience or API Identifier for this grant.
- client
Id String - ID of the client for this grant.
- scopes List<String>
- Permissions (scopes) included in this grant.
- allow
Any BooleanOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- List<String>
- Defines the types of authorization details allowed for this client grant.
- organization
Usage String - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- subject
Type String - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- audience string
- Audience or API Identifier for this grant.
- client
Id string - ID of the client for this grant.
- scopes string[]
- Permissions (scopes) included in this grant.
- allow
Any booleanOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- string[]
- Defines the types of authorization details allowed for this client grant.
- organization
Usage string - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- subject
Type string - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- audience str
- Audience or API Identifier for this grant.
- client_
id str - ID of the client for this grant.
- scopes Sequence[str]
- Permissions (scopes) included in this grant.
- allow_
any_ boolorganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- Sequence[str]
- Defines the types of authorization details allowed for this client grant.
- organization_
usage str - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- subject_
type str - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- audience String
- Audience or API Identifier for this grant.
- client
Id String - ID of the client for this grant.
- scopes List<String>
- Permissions (scopes) included in this grant.
- allow
Any BooleanOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- List<String>
- Defines the types of authorization details allowed for this client grant.
- organization
Usage String - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- subject
Type String - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClientGrant 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 ClientGrant Resource
Get an existing ClientGrant 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?: ClientGrantState, opts?: CustomResourceOptions): ClientGrant
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_any_organization: Optional[bool] = None,
audience: Optional[str] = None,
authorization_details_types: Optional[Sequence[str]] = None,
client_id: Optional[str] = None,
organization_usage: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
subject_type: Optional[str] = None) -> ClientGrant
func GetClientGrant(ctx *Context, name string, id IDInput, state *ClientGrantState, opts ...ResourceOption) (*ClientGrant, error)
public static ClientGrant Get(string name, Input<string> id, ClientGrantState? state, CustomResourceOptions? opts = null)
public static ClientGrant get(String name, Output<String> id, ClientGrantState state, CustomResourceOptions options)
resources: _: type: auth0:ClientGrant 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
Any boolOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- Audience string
- Audience or API Identifier for this grant.
- List<string>
- Defines the types of authorization details allowed for this client grant.
- Client
Id string - ID of the client for this grant.
- Organization
Usage string - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- Scopes List<string>
- Permissions (scopes) included in this grant.
- Subject
Type string - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- Allow
Any boolOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- Audience string
- Audience or API Identifier for this grant.
- []string
- Defines the types of authorization details allowed for this client grant.
- Client
Id string - ID of the client for this grant.
- Organization
Usage string - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- Scopes []string
- Permissions (scopes) included in this grant.
- Subject
Type string - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- allow
Any BooleanOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- audience String
- Audience or API Identifier for this grant.
- List<String>
- Defines the types of authorization details allowed for this client grant.
- client
Id String - ID of the client for this grant.
- organization
Usage String - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- scopes List<String>
- Permissions (scopes) included in this grant.
- subject
Type String - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- allow
Any booleanOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- audience string
- Audience or API Identifier for this grant.
- string[]
- Defines the types of authorization details allowed for this client grant.
- client
Id string - ID of the client for this grant.
- organization
Usage string - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- scopes string[]
- Permissions (scopes) included in this grant.
- subject
Type string - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- allow_
any_ boolorganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- audience str
- Audience or API Identifier for this grant.
- Sequence[str]
- Defines the types of authorization details allowed for this client grant.
- client_
id str - ID of the client for this grant.
- organization_
usage str - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- scopes Sequence[str]
- Permissions (scopes) included in this grant.
- subject_
type str - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
- allow
Any BooleanOrganization - If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations.
- audience String
- Audience or API Identifier for this grant.
- List<String>
- Defines the types of authorization details allowed for this client grant.
- client
Id String - ID of the client for this grant.
- organization
Usage String - Defines whether organizations can be used with client credentials exchanges for this grant. (defaults to deny when not defined)
- scopes List<String>
- Permissions (scopes) included in this grant.
- subject
Type String - Defines the type of subject for this grant. Can be one of
client
oruser
. Defaults toclient
when not defined.
Import
This resource can be imported by specifying the client grant ID.
You can find this within the Management Dashboard in Application -> APIs -> Expand the required API.
Example:
$ pulumi import auth0:index/clientGrant:ClientGrant my_client_grant "cgr_XXXXXXXXXXXXXXXX"
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
auth0
Terraform Provider.