Support third party app security params#1522
Open
bkiran6398 wants to merge 5 commits into
Open
Conversation
… 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.
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:--third-party-security-mode(-s): Set security mode tostrictorpermissive--redirection-policy(-y): Set toallow_alwaysoropen_redirect_protectionNew flags on
apps update:--third-party-security-mode(-s): Update the security mode--redirection-policy(-y): Update the redirection policyDisplay updates:
apps showandapps listnow displayTHIRD 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:
is_first_partyis automatically set tofalseIsSet()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