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 FGA API support #474

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Add FGA API support #474

merged 4 commits into from
Nov 11, 2024

Conversation

orius123
Copy link
Member

Description

This pull request introduces support for Fine-Grained Authorization (FGA) in the Descope SDK. The changes include adding new endpoints, data structures, and methods for managing FGA schemas and relations, as well as performing checks.

New FGA Functionality:

Added 4 new functions under Management.FGA()

  • SaveSchema - Creates a new schema for the project.
  • CreateRelations - Creates new relations for the project.
  • DeleteRelations - Deletes relations for the project.
  • Check - Checks if the given relations are satisfied.

Must

  • Tests
  • Documentation (if applicable)

@orius123 orius123 requested review from dorsha and aviadl November 10, 2024 18:54
Copy link
Member

@dorsha dorsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, one comment.
Let's also add to README.

descope/internal/mgmt/fga.go Show resolved Hide resolved
@orius123
Copy link
Member Author

Added README
@allenzhou101 please go over it as well

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@allenzhou101
Copy link
Contributor

@orius123 Couple small readme comments. Otherwise looks good!

@orius123 orius123 merged commit 4b55cee into main Nov 11, 2024
5 checks passed
@orius123 orius123 deleted the fga-apis branch November 11, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants