Fine-grained authorization
open sourceApache-2.0self-hostablefree
OpenFGA is an open source authorization engine for building fine-grained access control, inspired by Google's Zanzibar paper. You describe who can do what in an easy-to-read modelling language, for relationship-based access control as well as role-based and attribute-based cases, then your application asks it permission checks over its API, answered in milliseconds. It stores relationships in memory, PostgreSQL, MySQL or SQLite (beta), runs from Docker or Homebrew, and has SDKs for Java, Node.js, Go, Python and .NET. It's a Cloud Native Computing Foundation incubating project; Auth0 FGA has run it in production since December 2021, and Grafana Labs, Canonical and Docker use it. Alternatives include SpiceDB.
Ways to install
Package managers
Problems it solves
- add fine-grained permissions like Google Docs sharing to my app
- relationship-based access control service
- a Zanzibar-style authorization server I can self-host
- check whether a user can access a resource from my backend
Features
- authorization modelling language
- ReBAC, RBAC and ABAC
- millisecond check API
- PostgreSQL, MySQL and SQLite storage
- SDKs for five languages
Capabilities
| Has an API | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what OpenFGA does.
- Ory Keto Open source authorization server based on Google Zanzibar, for RBAC and ReBAC
- SpiceDB Open-source, Google Zanzibar-inspired database for fine-grained authorization
- Open Policy Agent An open source, general-purpose policy engine that unifies policy enforcement across the stack
- Apache Casbin An authorization library that supports access control models like ACL, RBAC, ABAC
- Oso Cloud A centralized authorization service built on Polar
- Ory Headless, cloud-native identity: authentication, OAuth2/OIDC and permissions