Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

CAS mock server

12 sites Security covered Drupal 9–11 CAS ecosystem
View on drupal.org

This module provides a mocked CAS server for testing purposes, allowing you to simulate CAS authentication without needing an external service. It's useful for local development and for integration with testing frameworks like Behat.

This module provides a mocked CAS server for testing purposes.

When the mock server is enabled it will override the configuration of the CAS module to point to a simulated CAS server that is hosted within the Drupal site. This allows tests to log in through the CAS authentication form and being redirected back to the Drupal site, without having to connect to an external service.

The module is also helpful for developers that want to run a CAS enabled website on a local environment that is not reachable by an external CAS service.

An API is provided to create test users and enable/disable the mock server. The module integrates with Drush to control the mock server from the command line. Behat integration is provided.

See the README for more information.

Contributing

Since Behat is used as part of the tests for this module we cannot run the entire test suite on the drupal.org infrastructure. Please submit pull requests in the Github project instead of posting patches, so we can verify that the tests are still passing.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2025
Latest release
7 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.5 Stable 9–11 Jan 18, 2026
2.0.4 Stable 9–11 Nov 19, 2025
2.0.3 Stable 9–11 Nov 11, 2025
2.0.2 Stable 9–11 Jan 8, 2025