Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

This module enables cookie-based Single Sign-On for Drupal sites on common parent domains, allowing users to authenticate once and remain logged in across related subdomains. It works by sharing authentication sessions through signed cookies, providing a centralized SSO experience for portal ecosystems.

Provides cross-subdomain single sign-on for Drupal sites that live under a common parent domain (for example a.example.com and b.example.com). On an authenticated response it writes one AES-256-CBC-encrypted, HMAC-SHA256-signed cookie to the shared parent domain; every participating site validates that cookie locally and logs the user in — with no redirect to, or back-channel call to, the Identity Provider.

Features

  • Single signed, encrypted session cookie on the shared parent domain, with a longer-lived refresh cookie.
  • Local validation on each site: signature, expiry, issued-at, issuer/audience and per-user revocation — no IdP round-trip.
  • Encrypt-then-MAC with HKDF-derived encryption and MAC subkeys and a random IV.
  • Key rotation via an embedded key id, with a grace window across old keys.
  • Logout genuinely clears the shared cookie across the domain.
  • Sliding-expiry refresh (optional) plus login-time issuance.
  • Fails closed when no key is present; a random key is seeded on install.
  • Host-validated cookie domain to prevent writing a cookie for a domain the site is not part of.

Security model

Cookie encryption and MAC key material lives in settings.php or State, never in exportable configuration.

Requirements

  • Drupal core ^11.2 || ^12
  • PHP with the OpenSSL extension
  • SSO Connector ^1.0
  • Sites sharing a common parent domain

Installation

composer require drupal/sso_connector_cookie
drush en sso_connector_cookie

Part of the SSO Connector bundle

Requires SSO Connector (core). See the core project for the full suite.

Activity

Total releases
3
First release
Apr 2026
Latest release
1 week ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Jul 21, 2026
1.0.0 Stable Jul 18, 2026
1.0.0-beta1 Pre-release Apr 26, 2026