-
Notifications
You must be signed in to change notification settings - Fork 4
Add the FGA API whatCanTargetAccessWithRelation #256
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new Fine-Grained Authorization (FGA) API method whatCanTargetAccessWithRelation to filter resources by a specific relation definition and namespace. The implementation extends the existing authorization service with a more granular query capability.
- Added new API endpoint for querying target access with relation filtering
- Created new model class for handling resource responses
- Enhanced the authorization service interface and implementation
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/com/descope/sdk/mgmt/AuthzService.java | Added interface method with documentation for the new API |
| src/main/java/com/descope/sdk/mgmt/impl/AuthzServiceImpl.java | Implemented the new method with validation and API call logic |
| src/main/java/com/descope/model/authz/ResourcesResponse.java | Created new response model for resource lists |
| src/main/java/com/descope/literals/Routes.java | Added new endpoint route constant |
| src/test/java/com/descope/sdk/mgmt/impl/AuthzServiceImplTest.java | Added basic test case for the new functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Related Issues
Fixes https://github.com/descope/etc/issues/12340
Description
Add the FGA API
whatCanTargetAccessWithRelationMust