Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Central Authentication System (CAS) Server

Security covered Under active development 270 sites

Part of the CAS ecosystem · 5 projects

This module transforms your Drupal site into a central authentication system, allowing other applications to use your Drupal user database for single sign-on. It provides the core functionality for a CAS (Central Authentication Service) server.

The CAS Server module turns your Drupal site into a Central Authentication Service (CAS) server. Your Drupal user accounts become the single source of truth for logins: other applications (Drupal sites, CMSs, LMSs, or anything with a CAS client) send users to your site to sign in, and your site tells them who the user is.

Users log in once and are signed in to every connected application for the rest of their session.

Features

  • Implements the CAS 1.0, 2.0 and 3.0 protocols.
  • XML and JSON validation responses.
  • Proxy authentication (proxy-granting tickets and proxy tickets) for services that call back-end services on a user's behalf.
  • Service definitions: only applications matching a registered service URL pattern can authenticate against your server.
  • Per-service control over whether a service joins the single sign-on session or authenticates on its own.
  • Per-service attribute release: choose which user fields are sent to each application, e.g. so it can create a matching local account.
  • Role-based access: restrict which roles may log in to a given service, or to any service.
  • Users can log in with their username, their email address, or either; the identifier returned to services can be the username, email address or user ID.
  • Configurable lifetimes for login, service, proxy, proxy-granting and ticket-granting tickets.
  • Customisable messages for invalid services, denied access, logout and already-logged-in users.
  • Optional debug logging to help when connecting a new client.
  • Events for developers to alter released attributes and tickets.

Requirements

  • No additional contributed module dependencies.
  • HTTPS with a valid certificate from a trusted CA. The CAS protocol requires it, and clients will refuse to validate against a server they can't trust.

Getting started

  1. Install the module as usual.
  2. Review the general settings at Configuration » People » CAS Server.
  3. Add at least one service definition for each application that will authenticate against your site.
  4. Point your applications' CAS clients at https://your-site.example/cas to authenticate.

CAS Server vs. CAS

This module provides the server side of the CAS protocol. If you want your Drupal site to log users in with an existing CAS server, use the CAS module instead. Do not enable both modules on the same site.

CAS Server replaces the server component that used to ship inside the CAS module.

Related modules

  • CAS: the client. Use it on the Drupal sites that log in through your CAS Server.
  • CAS Attributes: maps the attributes your server releases onto user fields and roles on client Drupal sites.
Drupal 10–11

Ask your assistant about Central Authentication System (CAS) Server

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
18
Tracked since
Sep 2023
Latest release
1 month ago
Releases (12 mo)
4
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.x-dev Dev 10–11 Apr 9, 2024
2.0.0 Stable 9–10 Apr 2, 2024
2.0.0-rc2 Pre-release 9–10 Mar 30, 2024
8.x-1.1 Stable 8–9 Nov 2, 2023
8.x-1.1-rc1 Pre-release 8–9 Oct 19, 2023
2.0.0-rc1 Pre-release 9–10 Oct 19, 2023
2.0.x-dev Dev 9–10 Oct 19, 2023
8.x-1.0 Stable 8–10 Sep 1, 2023