Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Rules Configs endpoints #552

Conversation

caldwell0414
Copy link
Contributor

Changes

Added a new Client implementation to the ManagementApi named RulesConfigClient. This client will make calls to the /rules-configs endpoint in the Auth0 Management API (v2). It includes a PUT and a DELETE call. It does not include any GET requests because they are not supported on that endpoint for security purposes. Because the implementor cannot determine if a variable already exists, we have named the PUT implementation CreateOrUpdateAsync().

We followed the pattern provided for other clients in the library and included the great cleanup work done by @frederikprijck. His commit is included in our PR, so you may want to accept his first.

References

See Issue #551 for more details.

Testing

Our PR includes integration tests to exercise the new client.

  • This change adds unit test coverage

  • This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

Checklist

  • I have read the Auth0 general contribution guidelines

  • I have read the Auth0 Code of Conduct

  • All existing and new tests complete without errors
    NOTE: some tests require configuration that we don't have correct on our test host. please let us know if your testing runs into any critical failures. We did not modify any existing code and so do not expect any side effects.

@caldwell0414 caldwell0414 requested a review from a team as a code owner February 24, 2022 17:00
@frederikprijck
Copy link
Member

Thanks for this!

Let me first merge #550, then we can rebase your branch and get it reviewed and merged as well.

@caldwell0414
Copy link
Contributor Author

caldwell0414 commented Feb 28, 2022 via email

@frederikprijck
Copy link
Member

Hey @caldwell0414 ,

Would you be able to resolve the conflicts? I just merged the other PR so you should be able to drop the cleanup commit, and merge in master.

Thanks

@caldwell0414
Copy link
Contributor Author

caldwell0414 commented Mar 2, 2022 via email

@frederikprijck frederikprijck force-pushed the features/rules-configs-management-client branch from 2f91e71 to 4b9ad14 Compare March 4, 2022 11:22
@frederikprijck
Copy link
Member

I update the base here, thanks! 🚀

@frederikprijck frederikprijck merged commit 1c1e93d into auth0:master Mar 4, 2022
@frederikprijck frederikprijck added this to the 7.14.1 milestone Mar 4, 2022
@frederikprijck frederikprijck changed the title Features/rules configs management client Add support for Rules Configs endpoints Mar 4, 2022
@frederikprijck frederikprijck mentioned this pull request Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants