PHPackages                             uazgraduatecollege/cakephp-casauth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. uazgraduatecollege/cakephp-casauth

ActiveCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

uazgraduatecollege/cakephp-casauth
==================================

CAS Authentication wrapper for CakePHP 4.x using Apereo (formerly Jasig) phpCAS

2.0.0(2y ago)05041MITPHPPHP &gt;=7.2

Since Jun 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/uazgraduatecollege/cakephp-casauth)[ Packagist](https://packagist.org/packages/uazgraduatecollege/cakephp-casauth)[ RSS](/packages/uazgraduatecollege-cakephp-casauth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

CAS Authentication for CakePHP 4.x
==================================

[](#cas-authentication-for-cakephp-4x)

Very basic CAS Authentication for CakePHP 4.

Installing via composer
-----------------------

[](#installing-via-composer)

Install into your project using [composer](http://getcomposer.org). For existing applications you can add the following to your composer.json file:

```
    "repositories": [
      {
        "type": "git",
        "url": "https://github.com/uazgraduatecollege/cakephp-casauth.git"
      }
    ],
    "require": {
        "uazgraduatecollege/cakephp-casauth": "~2.0"
    }
```

And run `php composer.phar update`

Usage
-----

[](#usage)

Load the Cake AuthComponent, including CasAuth.Cas as an authenticator. For example:

```
$this->loadComponent('Auth');

$this->Auth->config(
    'authenticate',
    [
        'CasAuth.Cas' => [
            'cas_host => 'cas.mydomain.com',
            'cas_context => '/cas,
            'client_service_name => 'https://clientapplication.otherdomain.com',
        ]
    ]
);
```

Or combine the load and configuration into one step:

```
$this->loadComponent(
    'Auth',
    [
        'authenticate' => [
            'CasAuth.Cas' => [
                'cas_host => 'cas.mydomain.com',
                'cas_context => '/cas,
                'client_service_name => 'https://clientapplication.otherdomain.com',
            ]
        ]
    ]
);
```

Parameters
----------

[](#parameters)

- **cas\_host** is required.
- **cas\_context** defaults to '' (an empty string)
- *client\_service\_name* (optional) defaults to `$_SERVER['SERVER_NAME']`
- *cas\_port* defaults to 443
- *debug* (optional) if true, then phpCAS will write debug info to your configured logger.
- *cert\_path* (optional) if set, then phpCAS will use the specified CA certificate file to verify the CAS server
- *curlopts* (optional) key/value paired array of additional CURL parameters to pass through to phpCAS::setExtraCurlOption, e.g.

```
'curlopts' => [CURLOPT_PROXY => 'http://proxy:5543', CURLOPT_CRLF => true]
```

### Note about parameter key changes

[](#note-about-parameter-key-changes)

Prior to release 2.0.0, several parameter used different keys. Release 2.0.0 updates `apereo/phpcas` to use at least version 1.6, which contains breaking changes. For better clarity, the previous parameter key names have been re-mapped to the new names, which match variable names as used in the `apereo/phpcas`[example client usage](https://github.com/apereo/phpCAS/blob/master/docs/examples/example_simple.php).

- `hostname` changed to `cas_host`
- `port` changed to `cas_port`
- `uri` changed to `cas_context`

cakephp-casauth looks for input parameters using the old keys to try to remain backwards compatible. Your mileage may vary.

License
-------

[](#license)

This project was forked from [Glen Sawyer's cakephp-3-cas repository](https://github.com/snelg/cakephp-3-cas)and retains the original Apache License version 2.0.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~277 days

Total

4

Last Release

952d ago

Major Versions

1.0.1 → 2.0.02023-10-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd21231740f546e2028fb26a833721621a0e86de3089483982924a5bab5e6d27?d=identicon)[uazpbarabe](/maintainers/uazpbarabe)

---

Top Contributors

[![snelg](https://avatars.githubusercontent.com/u/5741887?v=4)](https://github.com/snelg "snelg (19 commits)")[![pbarabe](https://avatars.githubusercontent.com/u/20072559?v=4)](https://github.com/pbarabe "pbarabe (17 commits)")[![mathieugrimault](https://avatars.githubusercontent.com/u/30295397?v=4)](https://github.com/mathieugrimault "mathieugrimault (1 commits)")[![Zehir](https://avatars.githubusercontent.com/u/845225?v=4)](https://github.com/Zehir "Zehir (1 commits)")

---

Tags

authenticationcakephpcascasauthphp

### Embed Badge

![Health badge](/badges/uazgraduatecollege-cakephp-casauth/health.svg)

```
[![Health](https://phpackages.com/badges/uazgraduatecollege-cakephp-casauth/health.svg)](https://phpackages.com/packages/uazgraduatecollege-cakephp-casauth)
```

###  Alternatives

[cakedc/users

Users Plugin for CakePHP

524897.0k16](/packages/cakedc-users)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)[admad/cakephp-jwt-auth

CakePHP plugin for authenticating using JSON Web Tokens

160680.3k8](/packages/admad-cakephp-jwt-auth)[markstory/acl_extras

Additional tools for managing DB ACL in CakePHP applications.

155311.0k](/packages/markstory-acl-extras)[admad/cakephp-social-auth

A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter etc.

51298.3k1](/packages/admad-cakephp-social-auth)[cakedc/auth

Auth objects for CakePHP

31630.0k2](/packages/cakedc-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
