Support for On-behalf-of Token Exchange#1504
Merged
bkiran6398 merged 5 commits intomainfrom Apr 30, 2026
Merged
Conversation
- Introduced new flags for enforcing authorization policies and specifying token dialects in API commands. - Added `EnforcePolicies` and `TokenDialect` fields to the `apiView` struct for display purposes. - Updated `createAPICmd` and `updateAPICmd` functions to handle new inputs for these fields. - Enhanced command examples to demonstrate usage of the new flags.
- Introduced new test cases for the 'apis create' and 'apis update' commands. - Validated the behavior of the --enforce-policies flag with true and false values. - Added checks for the --token-dialect flag with different dialects. - Ensured that the output contains expected values for both flags.
- Modified test cases to ensure proper handling of the --enforce-policies and --token-dialect flags in the apis create command. - Adjusted command syntax to remove unnecessary scope parameters for clarity. - Enhanced output validation to check JSON structure instead of plain text.
- Added examples for using --enforce-policies and --token-dialect flags in both `auth0 apis create` and `auth0 apis update` commands. - Clarified the purpose of the --enforce-policies flag, indicating that it enforces authorization policies for the API. - Updated the documentation to reflect the new options available for token dialects.
… update - Introduced the `--allow-any-profile-of-type` flag for both `auth0 apps create` and `auth0 apps update` commands. - This flag accepts a comma-separated list of token exchange types, enhancing flexibility in application configurations. - Updated the application view to display the allowed token exchange types. - Added tests to validate the new functionality and ensure proper behavior. - Updated integration test cases to cover scenarios for creating and updating applications with the new flag.
ramya18101
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
Adds CLI support for three new Management API features across
apisandappscommands:APIs (Resource Servers):
--enforce-policiesflag onauth0 apis createandauth0 apis update— enables authorization policy enforcement for the API.--token-dialectflag onauth0 apis createandauth0 apis update— sets the access token dialect. Acceptsaccess_token,access_token_authz,rfc9068_profile, orrfc9068_profile_authz.Apps (Clients):
--allow-any-profile-of-type(-p) flag onauth0 apps createandauth0 apps update— sets enabled token exchange types on a client. Accepts a comma-separated list (e.g.,custom_authentication,on_behalf_of_token_exchange). Passing an empty value on update clears the configuration.Display output updated to show
ENFORCE POLICIES,TOKEN DIALECT, andTOKEN EXCHANGE TYPESfields.Examples
📚 References
🔬 Testing
excludeEmptyEntrieshelper (apps_test.go).apis create/updatewith--enforce-policiesand--token-dialect(test cases 024–032).apps create/update/showwith--allow-any-profile-of-type(test cases 042–044).📝 Checklist