2017 © Pedro Peláez
 

library cakephp-3-cas

CAS Authentication for CakePHP 3

image

snelg/cakephp-3-cas

CAS Authentication for CakePHP 3

  • Tuesday, May 29, 2018
  • by snelg
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1,672 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 12 Versions
  • 3 % Grown

The README.md

CAS Authentication for CakePHP 3.x

Very basic CAS Authentication for CakePHP 3., (*1)

Installing via composer

Install into your project using composer. For existing applications you can add the following to your composer.json file:, (*2)

"require": {
    "snelg/cakephp-3-cas": "~1.0"
}

And run php composer.phar update, (*3)

Usage

Load the Cake AuthComponent, including CasAuth.Cas as an authenticator. For example:, (*4)

$this->loadComponent('Auth');

$this->Auth->config('authenticate', [
    'CasAuth.Cas' => [
        'hostname' => 'cas.mydomain.com',
        'uri' => 'authpath']]);

Or combine the load and configuration into one step:, (*5)

$this->loadComponent('Auth', [
    'authenticate' => [
        'CasAuth.Cas' => [
            'hostname' => 'cas.mydomain.com',
            'uri' => 'authpath']]]);

CAS parameters can be specified during Auth->config as above, or by writing to the "CAS" key in Configure::write, e.g., (*6)

Configure::write('CAS.hostname', 'cas.myhost.com');
Configure::write('CAS.port', 8443);

Parameters

  • hostname is required
  • port defaults to 443
  • uri defaults to '' (an empty string)
  • debug (optional) if true, then phpCAS will write debug info to logs/phpCAS.log
  • 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]

The Versions

29/05 2018

dev-master

9999999-dev

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

29/05 2018

1.2.1

1.2.1.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

08/05 2018

dev-logout-redirect

dev-logout-redirect

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

08/05 2018

1.1.5

1.1.5.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

16/03 2018

1.2.0

1.2.0.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

23/01 2018

1.1.4

1.1.4.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

01/04 2016

1.1.3

1.1.3.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

06/01 2016

1.1.2

1.1.2.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

15/09 2015

1.1.1

1.1.1.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

17/08 2015

1.1.0

1.1.0.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

15/08 2015

1.0.1

1.0.1.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

08/07 2015

1.0.0

1.0.0.0

CAS Authentication for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires