docs: SSO roles are opt-in via roles_enabled - #6546
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
docs: SSO roles are opt-in via roles_enabled#6546devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1785949688-sso-roles-opt-in.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
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.
Summary
SSO role-based access control is now opt-in per site: Fern only carries a visitor's SSO roles into their
fern_tokenwhen roles are enabled for that site (roles_enabled), and configuring aroles_claimopts in on its own. Previously every SSO site got the default WorkOSmemberrole, which forked the docs route cache into an un-warmed variant and made the first page load after login very slow (~30s). Sites that don't gate content by role now avoid that penalty; sites that do use RBAC need roles explicitly enabled, otherwise authenticated visitors carry no roles and see onlyeveryonecontent.Implements docs for: fix(docs): make SSO roles opt-in via roles_enabled (fern-api/fern-platform#13578)
Pages changed
authentication/sso.mdx— the role-based access control steps now start with enabling roles for the site, and the closing paragraph notes thatroles_claimalso enables them while an explicitroles_enabled: falsewins. Framed as something Fern configures with you, matching the rest of the page.authentication/rbac.mdx— one sentence in Setup pointing SSO readers at the SSO page's RBAC section.changelog/2026-08-03.mdx— new entry (security,performance).Not done: self-hosted env vars
The task asked to document
FERN_AUTH_ROLES_ENABLED/FERN_AUTH_ROLES_CLAIMinself-hosted/self-hosted-authentication.mdx. That page documents onlypasswordandbasic_token_verification, and the self-hosted feature matrix inself-hosted/self-hosted.mdxcurrently lists both SSO and RBAC as unsupported. Documenting the vars would require adding an SSO section that contradicts that matrix, so I left it out. If self-hosted SSO is in fact supported, the matrix needs updating too and I'll add the section in a follow-up.Validation
pre-commit run --files <changed>(Vale: 0 errors; remaining warnings are on pre-existing lines) andfern check --warnings(0 errors).Link to Devin session: https://app.devin.ai/sessions/af65a60bcadd487f92197ece104d9c37