Skip to main content Link Menu Expand (external link) Document Search Copy Copied

auth0 token-exchange create

Create a new token exchange profile.

To create interactively, use auth0 token-exchange create with no flags.

To create non-interactively, supply the name, subject token type, action ID, and type through the flags.

Usage

auth0 token-exchange create [flags]

Examples

  auth0 token-exchange create
  auth0 token-exchange create --name "My Token Exchange Profile"
  auth0 token-exchange create --name "My Token Exchange Profile" --subject-token-type "urn:ietf:params:oauth:token-type:jwt"
  auth0 token-exchange create --name "My Token Exchange Profile" --subject-token-type "urn:ietf:params:oauth:token-type:jwt" --action-id "act_123abc" --type "custom_authentication"
  auth0 token-exchange create -n "My Token Exchange Profile" -s "urn:ietf:params:oauth:token-type:jwt" -a "act_123abc" -t "custom_authentication" --json
  auth0 token-exchange create -n "My Token Exchange Profile" -s "urn:ietf:params:oauth:token-type:jwt" -a "act_123abc" -t "custom_authentication" --json-compact

Flags

  -a, --action-id string            Identifier of the action.
      --json                        Output in json format.
      --json-compact                Output in compact json format.
  -n, --name string                 Name of the token exchange profile.
  -s, --subject-token-type string   Type of the subject token. Must be a valid URI format (e.g., urn:ietf:params:oauth:token-type:jwt). Cannot use reserved prefixes: http://auth0.com, https://auth0.com, http://okta.com, https://okta.com, urn:ietf, urn:auth0, urn:okta.
  -t, --type string                 Type of the token exchange profile. Currently only 'custom_authentication' is supported.

Inherited Flags

      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.