Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CAS mock server

Security covered Under active development 15 sites

Part of the CAS ecosystem · 5 projects

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.

Drupal 9–11

Ask your assistant about CAS mock 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

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
5
Tracked since
Feb 2023
Latest release
8 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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
2.0.1 Stable 9–11 Feb 9, 2023