diff --git a/fern/products/docs/pages/authentication/assets/rbac.mp4 b/fern/products/docs/pages/authentication/assets/rbac.mp4 new file mode 100644 index 000000000..8ba2683ec Binary files /dev/null and b/fern/products/docs/pages/authentication/assets/rbac.mp4 differ diff --git a/fern/products/docs/pages/authentication/rbac.mdx b/fern/products/docs/pages/authentication/rbac.mdx index 00bcba79e..d3d916252 100644 --- a/fern/products/docs/pages/authentication/rbac.mdx +++ b/fern/products/docs/pages/authentication/rbac.mdx @@ -4,7 +4,6 @@ subtitle: Control who can view your documentation description: Learn how to restrict access to your documentation using role-based access control (RBAC) --- - Password-based RBAC is available on the [Team and Enterprise plans](https://buildwithfern.com/pricing). JWT and OAuth-based RBAC require the [Enterprise plan](https://buildwithfern.com/pricing). @@ -77,6 +76,30 @@ Use the `` component to [conditionally render content](/learn/docs/writing You can also combine `roles` with `products` and `versions` props. +## Example + +Fern's RBAC demo site defines the following roles: + +```yml docs.yml +roles: + - everyone + - work-trial + - engineers + - contractors +``` + +Unauthenticated users can only access sections marked as `viewers: everyone`. After logging in, users with the `work-trial`, `engineers`, or `contractors` role can access work trial content, engineering documentation, and contractor information. + + + + + ## Common errors