Support third party app security params#1522
Open
bkiran6398 wants to merge 9 commits into
Open
Conversation
ramya18101
requested changes
May 20, 2026
… policy - Introduced new flags for third-party applications: - `third-party-security-mode` to specify 'strict' or 'permissive'. - `redirection-policy` to control Auth0's behavior on authentication errors. - Updated `createAppCmd` and `updateAppCmd` functions to handle new inputs. - Enhanced `applicationView` to display third-party security mode and redirection policy. - Ensured backward compatibility by integrating new features without affecting existing functionality.
…pport - Updated the FetchData method in clientGrantResourceFetcher to handle grants marked as default_for, allowing for more accurate resource naming. - Introduced a new test case to validate the handling of default_for grants in TestClientGrantResourceFetcher_FetchData, ensuring expected behavior when fetching client grants with different audiences.
…flags - Added examples for `auth0 apps create` and `auth0 apps update` commands to demonstrate the usage of `--third-party-security-mode` and `--redirection-policy` flags. - Updated documentation to reflect the new security features for third-party applications, enhancing clarity for users.
…ecurity mode - Added a new test case to validate the creation of a regular app with third-party security mode set to strict and redirection policy set to open_redirect_protection. - The test ensures that the app is created successfully and outputs the expected JSON response.
- Introduced a new flag `--is-first-party` to differentiate between first-party and third-party applications. - Updated the command examples in `auth0_apps_create.md` and `auth0_apps_update.md` to reflect the new flag usage. - Modified the `createAppCmd` and `updateAppCmd` functions in `apps.go` to handle the new flag. - Enhanced the `applicationView` struct in `display/apps.go` to include the `IsFirstParty` field for display purposes.
…g for default_for grants
- Added integration tests for creating, showing, updating, and deleting a third-party app. - Created a new script `get-3p-app-id.sh` to handle the app ID retrieval for testing. - Updated existing test cases to reflect the new structure and ensure proper validation of third-party app properties.
a44b7bb to
94b8efd
Compare
Contributor
|
Please add a friendly helping warning log, if any users try to just set only Let the users find a good help log on those scenario's as they are inter-dependent |
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 Auth0's Third-Party Client security improvements.
New flags on
apps create:--is-first-party(-f): Whether the application is a first-party client (true) or third-party client (false). Default:true--third-party-security-mode(-s): Set security mode tostrictorpermissive--redirection-policy(-y): Set toallow_alwaysoropen_redirect_protectionNew flags on
apps update:--is-first-party(-f): Update whether the application is first-party or third-party--third-party-security-mode(-s): Update the security mode--redirection-policy(-y): Update the redirection policyDisplay updates:
apps showandapps listnow displayIS FIRST PARTY,THIRD PARTY SECURITY MODEandREDIRECTION POLICYfields when setTerraform fetcher fix:
default_forclient grants correctly duringauth0 tf generate. Grants withdefault_for(which lack aclient_id) now produce a meaningful resource name (default_for_third_party_clients_<audience>) instead of a broken_<audience>name.Behavioral notes:
IsSet()guards so these fields are only sent when explicitly provided📚 References
🔬 Testing
TestClientGrantResourceFetcher_FetchData— verifiesdefault_forgrants produce correct resource names--third-party-security-mode strict --redirection-policy open_redirect_protectionand validates JSON outputManual testing:
📝 Checklist