dotauth
Overview
dotAuth is dotCMS's built-in single sign-on (SSO) feature. It lets users sign in to dotCMS through your organization's identity provider (IdP), such as Okta, Microsoft Entra ID, Google Workspace, Auth0, Keycloak, Ping, or ADFS, instead of through separate dotCMS passwords. It also lets headless front ends (for example, a Next.js intranet or partner portal) exchange an IdP-issued token for a dotCMS API session, so visitors see only the content their roles allow.
dotAuth supports:
- OpenID Connect (OIDC) and OAuth 2.0, the recommended option for most IdPs
- SAML 2.0, for enterprise IdPs that use SAML federation
- Headless token exchange, which turns a verified OIDC
id_tokeninto a short-lived dotCMSsessionReffor REST and GraphQL calls
Available under the Settings tool group in dotCMS 26.08.24-01 and later, dotAuth replaces the legacy dotCMS OAuth plugin and adds a guided setup screen for SAML.
Key Concepts#
| Term | Meaning |
|---|---|
| Scope | The level a configuration applies to: System (the default for all sites) or an individual site. |
| System identity provider | The SSO configuration stored on the System scope. Every site without its own configuration inherits it. |
| Site override | A site-specific SSO configuration. It replaces the System configuration for that site entirely; settings are not merged. |
| Protocol | The SSO standard used for a scope: OAuth 2.0 / OIDC or SAML 2.0. Only one interactive protocol is active per scope. |
| Just-in-time (JIT) provisioning | dotCMS creates a user account automatically the first time someone signs in through the IdP. |
| Role behavior | How dotCMS reconciles a user's roles with the roles derived from their IdP groups at each sign-in. |
| Headless token exchange | An API that accepts an OIDC id_token from a front-end app and returns a dotCMS sessionRef. |
| sessionRef | An opaque bearer token (prefix dsr_) that a front-end app sends on dotCMS API calls to act as the signed-in user. |
Before You Begin#
Permissions. To open dotAuth, a user must be a backend user with the dotAuth tool in one of their menu layouts. On upgrade, dotCMS adds dotAuth directly after Apps in every layout that already contains Apps. The following actions also require an administrator:
- Saving or clearing headless settings
- Exporting and importing configuration
- Revoking all sessionRefs
At your identity provider, register an application for dotCMS and have these ready:
- For OIDC: the IdP's issuer or discovery URL, a client ID and client secret, and the groups claim name (if you want group-to-role mapping).
- For SAML: the IdP's metadata (URL or XML file).
- For headless: the issuer URL and the audience (
aud) value of the tokens your front-end app receives.
Tip: Before turning on SSO in production, read Rolling out SSO safely, and confirm you can still reach the native login form. See Native login fallback.
Where to Start#
| If you want to… | Start here |
|---|---|
| Understand the dotAuth screen, site overrides, or move configuration between environments | Managing dotAuth configurations |
| Set up browser sign-in for dotCMS users | Configuring single sign-on, then OAuth 2.0 / OIDC or SAML 2.0 |
| Connect Microsoft Entra ID | Quick start: Microsoft Entra ID |
| Control which users are created and which roles they get | User provisioning and role mapping |
| Turn SSO on without locking anyone out, or recover if sign-in fails | Rolling out SSO safely |
| Sign users in to a headless front end and call dotCMS APIs as them | Headless authentication |
| Look up endpoints, server properties, or security behavior | dotAuth reference |
| Fix a problem | Troubleshooting and limitations |