
OpenFGA Has a Free API — Heres How to Build Google Drive-Style Permissions
OpenFGA is an open-source authorization engine inspired by Google Zanzibar — the system that powers permissions in Google Drive, YouTube, and Google Cloud. Build relationship-based access control for any app. Why OpenFGA? Google Zanzibar : Same model used by Google, Airbnb, GitHub Relationship-based : 'Alice is editor of document:1' Sub-millisecond : Check permissions in <1ms Any scale : Handles billions of relationships Open source : CNCF project from Auth0/Okta Language SDKs : JS, Go, Python, Java, .NET Docker Setup docker run -p 8080:8080 -p 3000:3000 openfga/openfga run Define Authorization Model { "schema_version" : "1.1" , "type_definitions" : [ { "type" : "document" , "relations" : { "owner" : { "this" : {}}, "editor" : { "union" : { "child" : [{ "this" : {}}, { "computedUserset" : { "relation" : "owner" }}]}}, "viewer" : { "union" : { "child" : [{ "this" : {}}, { "computedUserset" : { "relation" : "editor" }}]}} } }, { "type" : "folder" , "relations" : { "owner" : { "this" : {}
Continue reading on Dev.to Tutorial
Opens in a new tab
