Skip to main content

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_token into a short-lived dotCMS sessionRef for 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#


TermMeaning
ScopeThe level a configuration applies to: System (the default for all sites) or an individual site.
System identity providerThe SSO configuration stored on the System scope. Every site without its own configuration inherits it.
Site overrideA site-specific SSO configuration. It replaces the System configuration for that site entirely; settings are not merged.
ProtocolThe 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) provisioningdotCMS creates a user account automatically the first time someone signs in through the IdP.
Role behaviorHow dotCMS reconciles a user's roles with the roles derived from their IdP groups at each sign-in.
Headless token exchangeAn API that accepts an OIDC id_token from a front-end app and returns a dotCMS sessionRef.
sessionRefAn 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.

Where to Start#


If you want to…Start here
Understand the dotAuth screen, site overrides, or move configuration between environmentsManaging dotAuth configurations
Set up browser sign-in for dotCMS usersConfiguring single sign-on, then OAuth 2.0 / OIDC or SAML 2.0
Connect Microsoft Entra IDQuick start: Microsoft Entra ID
Control which users are created and which roles they getUser provisioning and role mapping
Turn SSO on without locking anyone out, or recover if sign-in failsRolling out SSO safely
Sign users in to a headless front end and call dotCMS APIs as themHeadless authentication
Look up endpoints, server properties, or security behaviordotAuth reference
Fix a problemTroubleshooting and limitations