Add comprehensive OpenFGA demo applications showcasing banking and GenAI authorization models#12
Merged
3 commits merged intomainfrom Aug 25, 2025
Conversation
… and tests Co-authored-by: jralmaraz <13877691+jralmaraz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement OpenFGA authorization models and tests for demo applications
Add comprehensive OpenFGA demo applications showcasing banking and GenAI authorization models
Aug 24, 2025
…0e91 Signed-off-by: Jose Roberto Almaraz <jralmaraz1@gmail.com>
jralmaraz
requested changes
Aug 25, 2025
Owner
jralmaraz
left a comment
There was a problem hiding this comment.
Current changes are failing to run status check.
Changes proposed:
CI Workflow (.github/workflows/ci.yml): Fix Rust toolchain setup and Clippy linting errors.
Rust Code (src/main.rs): Refactor code to resolve Clippy errors.
Makefile: Update commands for linting.
README Documentation: Improve documentation to include Rust setup instructions and linting guide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds two comprehensive demo applications that showcase the OpenFGA operator's capabilities for implementing fine-grained authorization in real-world scenarios: a Banking Application Demo and a GenAI RAG Agent Demo.
Banking Application Demo
Implements a complete banking authorization system with:
The demo includes a comprehensive OpenFGA authorization model with 5 entity types (bank, branch, account, loan, transaction) and realistic relationship definitions using tuple-based permissions.
GenAI RAG Agent Demo
Implements sophisticated authorization for AI-powered knowledge management with:
The demo showcases advanced OpenFGA features including intersection logic where users must have both session access AND document permissions to view RAG results.
Key Features
Both demos demonstrate:
Files Added
Testing
All tests pass (40 total, including 33 new demo tests):
These demos serve as both educational examples and production-ready templates for implementing OpenFGA authorization in banking and AI applications.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.