spring-projects / spring-projects/spring-security

Add OpenFGA Support

Open
#14,121 26 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

theme: partner-use-cases type: enhancement
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

We should look into adding OpenFGA support See https://openfga.dev/

Some NOTES for myself:

  • We can use Testcontainers support for starting the openfga Docker image
  • We should provide a conventions based approach for loading the authorization model and data similar to how we support loading schema and test data into a database. To take it a step further, perhaps there could be an external liquibase style library for OpenFGA that Spring could leverage.
  • An example of what we might do is here
  • A working sample is at https://github.com/jimmyjames/fga-spring-examples

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the OpenFGA site, the Testcontainers support reference, the linked issue comment, and the fga-spring-examples sample. Define the supported integration, model and data loading conventions, and acceptance criteria before implementation; done would require a decided scope and a working integration or sample.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, spring
Domain
authorization, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.