Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions fern/products/docs/pages/authentication/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
title: Overview of authentication options
description: Gate your docs so readers only see the content relevant to them.
title: Authentication overview
description: "Gate your docs with SSO, password protection, JWT, or OAuth. Works with Okta, Google Workspace, Azure AD (Entra ID), Auth0, and any SAML 2.0 or OIDC provider."
---


Fern lets you control who can read your documentation. You can require a shared password, integrate with your company's SSO provider (Okta, Google Workspace, Azure AD / Entra ID, Auth0, OneLogin, and any SAML 2.0 or OIDC provider), or connect your own login system via JWT or OAuth. All methods support [role-based access control](/learn/docs/authentication/features/rbac) to show different content to different audiences.

Fern offers four ways to authenticate users on your documentation site:

<CardGroup cols={2}>
Expand All @@ -24,7 +26,7 @@ Fern offers four ways to authenticate users on your documentation site:
## Which option should I use?

- **[Password protection](/learn/docs/authentication/setup/password-protection)** — You need quick gating with a shared password (no per-user accounts). Supports multiple passwords mapped to roles for [role-based access control](/learn/docs/authentication/features/rbac).
- **[SSO](/learn/docs/authentication/setup/sso)** — Your team should log in with corporate credentials (Okta, Google Workspace, etc.) for internal docs or wikis. Supports [role-based access control](/learn/docs/authentication/features/rbac) when your identity provider includes roles on the token.
- **[SSO](/learn/docs/authentication/setup/sso)** — Your team should log in with corporate credentials for internal docs or wikis (Okta, Google Workspace, Azure AD / Entra ID, Auth0, OneLogin, and any SAML 2.0 or OIDC provider). Supports [role-based access control](/learn/docs/authentication/features/rbac) when your identity provider includes roles on the token.
- **[JWT](/learn/docs/authentication/setup/jwt)** — You want to integrate with your existing login system and control the entire auth flow yourself. Supports [role-based access control](/learn/docs/authentication/features/rbac) and [API key injection](/learn/docs/authentication/features/api-key-injection).
- **[OAuth](/learn/docs/authentication/setup/oauth)** — You want to integrate with your existing login system but have Fern manage the auth flow via your OAuth provider. Supports [role-based access control](/learn/docs/authentication/features/rbac) and [API key injection](/learn/docs/authentication/features/api-key-injection).

Expand All @@ -35,3 +37,20 @@ JWT and OAuth share the same capabilities — the difference is who manages the
JWT, OAuth, and SSO are all powered by a [browser cookie](/learn/docs/security/overview) called `fern_token` that tells Fern who the user is and what they can access. The token can carry user roles for [RBAC](/learn/docs/authentication/features/rbac), API keys for the [API Explorer](/learn/docs/api-references/api-explorer), or simply verify that a user is logged in.

[Password protection](/learn/docs/authentication/setup/password-protection) works differently — it uses a shared password rather than per-user tokens.

## Common questions

<AccordionGroup>
<Accordion title="Does Fern support Entra ID (Azure AD) SSO?">
Yes. Fern's SSO works with any SAML 2.0 or OIDC provider, including Microsoft Entra ID (formerly Azure AD). [Contact Fern](https://buildwithfern.com/book-demo) to set it up.
</Accordion>
<Accordion title="Can I integrate SSO with third-party service users (not just internal employees)?">
Yes. SSO is not limited to internal teams. You can gate docs for any audience — partners, customers, or external developers — as long as they authenticate through your identity provider. Combine SSO with [RBAC](/learn/docs/authentication/features/rbac) to show different content to different user groups.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <Microsoft.Contractions> reported by reviewdog 🐶
Use 'isn't' instead of 'is not'.

Suggested change
Yes. SSO is not limited to internal teams. You can gate docs for any audience — partners, customers, or external developers — as long as they authenticate through your identity provider. Combine SSO with [RBAC](/learn/docs/authentication/features/rbac) to show different content to different user groups.
Yes. SSO isn't limited to internal teams. You can gate docs for any audience — partners, customers, or external developers — as long as they authenticate through your identity provider. Combine SSO with [RBAC](/learn/docs/authentication/features/rbac) to show different content to different user groups.

</Accordion>
<Accordion title="Which authentication method supports API key injection?">
JWT and OAuth both support [API key injection](/learn/docs/authentication/features/api-key-injection), which pre-fills a user's API key in the API Explorer after they log in. SSO and password protection do not support API key injection.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <Microsoft.Contractions> reported by reviewdog 🐶
Use 'don't' instead of 'do not'.

Suggested change
JWT and OAuth both support [API key injection](/learn/docs/authentication/features/api-key-injection), which pre-fills a user's API key in the API Explorer after they log in. SSO and password protection do not support API key injection.
JWT and OAuth both support [API key injection](/learn/docs/authentication/features/api-key-injection), which pre-fills a user's API key in the API Explorer after they log in. SSO and password protection don't support API key injection.

</Accordion>
<Accordion title="Is authentication available on the free plan?">
Password protection is available on paid plans. SSO, JWT, and OAuth are Enterprise features. See [pricing](https://buildwithfern.com/pricing) for details.
</Accordion>
</AccordionGroup>
Loading