Feature Request: Support Core Authorization API calls
jakbutler opened this issue · 0 comments
jakbutler commented
Description
Feature Request: Support Core Authorization API calls
The current version of the Auth0 REST Management API allows for the creation and maintenance of Roles, the association of Permissions to Roles, and the association of Roles and Permissions to Users (and vice versa). It would be useful to support this same functionality in the Java client, allowing consumers to configure this information automatically to better support the new Core Authorization methodology and the RBAC API settings.
Current workarounds include:
- Creating a custom REST client instead of using the auth0-java client library
- Using the
app_metadata
on the User object and creating a custom rule to inject Roles and Permissions into a custom namespaced claim (and not using API permissions, Roles, and RBAC) - Using the soon-to-be-deprecated Authorization Extension and its generated Rule (and not using API permissions, Roles, and RBAC)
Implementing this would entail supporting the following endpoints and their respective REST methods:
/api/v2/roles
/api/v2/roles/{id}
/api/v2/roles/{id}/users
/api/v2/roles/{id}/permissions
/api/v2/users/{id}/roles
/api/v2/users/{id}/permissions
Prerequisites
- I have checked the documentation for this library in the README.
- I have checked the Auth0 Community for related posts.
- I have checked for related or duplicate Issues and PRs.
- I have read the Auth0 general contribution guidelines.
- I have read the Auth0 Code of Conduct.
- I am reporting this to the correct repository.
Environment
Please provide the following:
- Version of this library used: 1.11.0
- Version of Java used: jdk1.8.0_102
- Additional libraries that might be affecting your instance: N/A