|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +parent: auth0 token-exchange |
| 4 | +has_toc: false |
| 5 | +--- |
| 6 | +# auth0 token-exchange create |
| 7 | + |
| 8 | +Create a new token exchange profile. |
| 9 | + |
| 10 | +To create interactively, use `auth0 token-exchange create` with no flags. |
| 11 | + |
| 12 | +To create non-interactively, supply the name, subject token type, action ID, and type through the flags. |
| 13 | + |
| 14 | +## Usage |
| 15 | +``` |
| 16 | +auth0 token-exchange create [flags] |
| 17 | +``` |
| 18 | + |
| 19 | +## Examples |
| 20 | + |
| 21 | +``` |
| 22 | + auth0 token-exchange create |
| 23 | + auth0 token-exchange create --name "My Token Exchange Profile" |
| 24 | + auth0 token-exchange create --name "My Token Exchange Profile" --subject-token-type "urn:ietf:params:oauth:token-type:jwt" |
| 25 | + 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" |
| 26 | + auth0 token-exchange create -n "My Token Exchange Profile" -s "urn:ietf:params:oauth:token-type:jwt" -a "act_123abc" -t "custom_authentication" --json |
| 27 | + 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 |
| 28 | +``` |
| 29 | + |
| 30 | + |
| 31 | +## Flags |
| 32 | + |
| 33 | +``` |
| 34 | + -a, --action-id string Identifier of the action. |
| 35 | + --json Output in json format. |
| 36 | + --json-compact Output in compact json format. |
| 37 | + -n, --name string Name of the token exchange profile. |
| 38 | + -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. |
| 39 | + -t, --type string Type of the token exchange profile. Currently only 'custom_authentication' is supported. |
| 40 | +``` |
| 41 | + |
| 42 | + |
| 43 | +## Inherited Flags |
| 44 | + |
| 45 | +``` |
| 46 | + --debug Enable debug mode. |
| 47 | + --no-color Disable colors. |
| 48 | + --no-input Disable interactivity. |
| 49 | + --tenant string Specific tenant to use. |
| 50 | +``` |
| 51 | + |
| 52 | + |
| 53 | +## Related Commands |
| 54 | + |
| 55 | +- [auth0 token-exchange create](auth0_token-exchange_create.md) - Create a new token exchange profile |
| 56 | +- [auth0 token-exchange delete](auth0_token-exchange_delete.md) - Delete a token exchange profile |
| 57 | +- [auth0 token-exchange list](auth0_token-exchange_list.md) - List your token exchange profiles |
| 58 | +- [auth0 token-exchange show](auth0_token-exchange_show.md) - Show a token exchange profile |
| 59 | +- [auth0 token-exchange update](auth0_token-exchange_update.md) - Update a token exchange profile |
| 60 | + |
| 61 | + |
0 commit comments