PHPackages                             simplesamlphp/simplesamlphp-module-casserver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. simplesamlphp/simplesamlphp-module-casserver

ActiveSimplesamlphp-module[DevOps &amp; Deployment](/categories/devops)

simplesamlphp/simplesamlphp-module-casserver
============================================

CAS 1.0 and 2.0 compliant CAS server module for simpleSAMLphp

v7.0.1(2mo ago)72.2k11[1 PRs](https://github.com/simplesamlphp/simplesamlphp-module-casserver/pulls)LGPL-2.1-or-laterPHPPHP ^8.3CI passing

Since Aug 1Pushed 1mo ago8 watchersCompare

[ Source](https://github.com/simplesamlphp/simplesamlphp-module-casserver)[ Packagist](https://packagist.org/packages/simplesamlphp/simplesamlphp-module-casserver)[ Docs](https://github.com/simplesamlphp/simplesamlphp-module-casserver)[ RSS](/packages/simplesamlphp-simplesamlphp-module-casserver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (21)Used By (0)

SimpleSAMLphp-casserver
=======================

[](#simplesamlphp-casserver)

[![Build Status](https://github.com/simplesamlphp/simplesamlphp-module-casserver/actions/workflows/php.yml/badge.svg)](https://github.com/simplesamlphp/simplesamlphp-module-casserver/actions/workflows/php.yml/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/9e0e8df5ee26dd534e830cf65872418ac9f1c73314a9084cc4bae70b4f7b157f/68747470733a2f2f636f6465636f762e696f2f67682f73696d706c6573616d6c7068702f73696d706c6573616d6c7068702d6d6f64756c652d6361737365727665722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/simplesamlphp/simplesamlphp-module-casserver)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f5365c65f008934c87e575955e1acb86488b192d7a89f813be47a54177af0280/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696d706c6573616d6c7068702f73696d706c6573616d6c7068702d6d6f64756c652d6361737365727665722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/simplesamlphp/simplesamlphp-module-casserver/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/037474344c0bada81d2c14890a05f18543e34b2cfc500e39f52bf346b23fb281/68747470733a2f2f73686570686572642e6465762f6769746875622f73696d706c6573616d6c7068702f73696d706c6573616d6c7068702d6d6f64756c652d6361737365727665722f636f7665726167652e737667)](https://shepherd.dev/github/simplesamlphp/simplesamlphp-module-casserver)[![Psalm Level](https://camo.githubusercontent.com/a396bcb064b97306d0baf280bb49ed54ebff87ea88f14afc3922bf12df046782/68747470733a2f2f73686570686572642e6465762f6769746875622f73696d706c6573616d6c7068702f73696d706c6573616d6c7068702d6d6f64756c652d6361737365727665722f6c6576656c2e737667)](https://shepherd.dev/github/simplesamlphp/simplesamlphp-module-casserver)

SimpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a SimpleSAMLphp module.

Install
-------

[](#install)

Install with composer

```
composer require simplesamlphp/simplesamlphp-module-casserver
```

Configuration
-------------

[](#configuration)

Next thing you need to do is to enable the module: in `config.php`, search for the `module.enable` key and set `casserver` to true:

```
'module.enable' => [
    'casserver' => true,
    …
],
```

See the `config-templates` folder for examples of configuring this module

Debug
-----

[](#debug)

To aid in debugging you can print out the CAS ticket xml rather then returning a ticket id. Enable `debugMode` in `module_casserver.php` and then add a query parameter `debugMode=true` to the CAS login url.

Logging in to `https://cas.example.com/cas/login?debugMode=true&service=http://localhost/`would now print the xml for that service.

```
