Introduction to Authorization and Auth0 Fine Grained Authorization (FGA)
Please note that at this point in time, it is not considered production-ready and does not come with any SLAs; availability and uptime are not guaranteed. Limitations of Auth0 FGA during the Developer Community Preview can be found here.
What is Auth0 Fine Grained Authorization (FGA)?
What is authorization?
For example, when logging in to Twitter, the process in which Twitter verifies the user's username and password are correct is Authentication. The process of checking if that user can view or reply to a certain Tweet is Authorization.
What is Fine-Grained Authorization (FGA)?
Fine-Grained Authorization is being able to grant individual users access to specific objects or resources in a system. FGA at Scale means being able to do so, in a system that can have millions (or billions or more) of objects, users and relations, and has a high change rate - objects are regularly added and access permissions are constantly being updated. A good example of this is Google Drive - access can be granted either to documents, or folders; it can be granted to users individually or as a group. Access regularly changes as new documents are created and shared with specific users, whether inside the same company or outside a company.
What are Role-Based Access Control (RBAC) and Attribute-Based Access Control (ABAC)?
In Role-Based Access Control, permissions are assigned to users based on their role in a system (e.g. a user would need an
editor role to edit posts).
In Attribute-Based Access Control, instead of permissions being granted based on roles, they are granted based on a set of attributes on a user or resource (e.g. if a user has both
manager attributes they can publish and delete posts that have a
marketing attribute, but not others).
What is Relationship Based Access Control (ReBAC)?
ReBAC allows expressing rules based on relations that users have with objects and that objects have with other objects. For example, a user can view a document if they can view its parent folder.
What is Zanzibar?
Zanzibar is "Google’s Consistent, Global Authorization System" for "determining whether online users are authorized to access digital objects" across their products (Google Drive, YouTube, Google Photos, etc..). It uses (object, relation, user) tuples to store relation data and traverses those relations to check if there is a relation between a user and an object.
Learn more about Zanzibar at the Zanzibar Academy.