Skip to content

Conversation

@ramya18101
Copy link
Contributor

@ramya18101 ramya18101 commented Dec 15, 2025

🔧 Changes

Prerequisites : To successfully create and test token exchange profiles, you need a Custom Token Exchange Action
with the custom-token-exchange trigger. The action should implement the onExecuteCustomTokenExchange and Client with Token Exchange Enabled.

Usage Examples

Create a Token Exchange Profile

auth0 token-exchange create \
  -n "my-custom-auth-profile" \
  -s "urn:ietf:params:oauth:token-type:jwt" \
  -a "act_xxxxxxxxxxxxx" \
  -t "custom_authentication"

List Token Exchange Profiles

# Table format
auth0 token-exchange list

# JSON format
auth0 token-exchange list --json

# CSV format
auth0 token-exchange list --csv

Show Profile Details

auth0 token-exchange show <profile-id>
auth0 token-exchange show <profile-id> --json

Update a Profile

# Update name and subject token type
auth0 token-exchange update <profile-id> \
  -n "updated-profile-name" \
  -s "urn:ietf:params:oauth:token-type:saml2"

Note: Only name and subject_token_type can be updated. The action_id and type are immutable after creation.

📚 References

Get token exchange profiles
Create a token exchange profile
Get a token exchange profile
Delete a token exchange profile
Update an existing token exchange profile

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ramya18101 ramya18101 force-pushed the DXCDT-1335-add-support-for-CTE branch from ad49af4 to 326ecbb Compare December 15, 2025 07:31
@ramya18101 ramya18101 changed the title Add support for token exchange profile management commands Feat : Add support for CTE Dec 15, 2025
@ramya18101 ramya18101 changed the title Feat : Add support for CTE Feat : Add support for CTE profiles Dec 15, 2025
@ramya18101 ramya18101 changed the title Feat : Add support for CTE profiles Feat : Add support for CTE profiles (EA Dec 15, 2025
@ramya18101 ramya18101 changed the title Feat : Add support for CTE profiles (EA Feat : Add support for CTE profiles (EA) Dec 15, 2025
@ramya18101 ramya18101 marked this pull request as ready for review December 15, 2025 08:10
@ramya18101 ramya18101 requested a review from a team as a code owner December 15, 2025 08:10
duedares-rvj
duedares-rvj previously approved these changes Dec 15, 2025
Copy link
Member

@duedares-rvj duedares-rvj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean. LGTM.

@ramya18101 ramya18101 merged commit 5511ffe into main Dec 15, 2025
7 checks passed
@ramya18101 ramya18101 deleted the DXCDT-1335-add-support-for-CTE branch December 15, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants