Download the PHP package uazgraduatecollege/cakephp-casauth without Composer
On this page you can find all versions of the php package uazgraduatecollege/cakephp-casauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uazgraduatecollege/cakephp-casauth
More information about uazgraduatecollege/cakephp-casauth
Files in uazgraduatecollege/cakephp-casauth
Package cakephp-casauth
Short Description CAS Authentication wrapper for CakePHP 4.x using Apereo (formerly Jasig) phpCAS
License MIT Apache-2.0
Informations about the package cakephp-casauth
CAS Authentication for CakePHP 4.x
Very basic CAS Authentication for CakePHP 4.
Installing via composer
Install into your project using composer. For existing applications you can add the following to your composer.json file:
And run php composer.phar update
Usage
Load the Cake AuthComponent, including CasAuth.Cas as an authenticator. For example:
Or combine the load and configuration into one step:
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.
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.
hostname
changed tocas_host
port
changed tocas_port
uri
changed tocas_context
cakephp-casauth looks for input parameters using the old keys to try to remain backwards compatible. Your mileage may vary.
License
This project was forked from Glen Sawyer's cakephp-3-cas repository and retains the original Apache License version 2.0.