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

ManagementApi does not include a client for Rules Configs #551

Closed
caldwell0414 opened this issue Feb 24, 2022 · 2 comments
Closed

ManagementApi does not include a client for Rules Configs #551

caldwell0414 opened this issue Feb 24, 2022 · 2 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@caldwell0414
Copy link
Contributor

Describe the problem you'd like to have solved

We make use of the ManangementApi to automate configuration of our tenants. This includes managing rules. We are unable to set config variables because there is no client in the API to call the /rules-configs endpoints on the Auth0 v2 management API.

Describe the ideal solution

We will provide a PR that implements a RulesConfigClient that follows the pattern of other clients and includes the cleanup work done by @frederikprijck in the chore/test-cleanup branch. We recommend that you accept his PR prior to accepting ours.

We appreciate the opportunity to contribute to this library.

Alternatives and current work-arounds

The only current work around is to use an HTTP client and make direct PUT and DELETE requests to the v2 Management API endpoints.

Additional information, if any

For security reasons, rules configuration variables cannot be read from the API, so there is no GET implementation in our PR. We confirm through unit tests that the CreateOrUpdateAsync() calls will either create or overwrite existing configuration variables.

Finally, it is important to note that the default scopes generated for the Management API client do not include rules-configs:delete, so customers will have to add this scope in order to use the DeleteAsync() method call. We confirmed that the API correctly returns the 403, along with a message indicating the missing scope when it is not present.

@caldwell0414 caldwell0414 added the feature request A feature has been asked for or suggested by the community label Feb 24, 2022
@frederikprijck
Copy link
Member

Will be included in the next release, thanks for the PR!

@caldwell0414
Copy link
Contributor Author

caldwell0414 commented Mar 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

2 participants