Skip to content

Instantly share code, notes, and snippets.

@blissdev
Created August 30, 2013 17:50
Show Gist options
  • Save blissdev/6392501 to your computer and use it in GitHub Desktop.
Save blissdev/6392501 to your computer and use it in GitHub Desktop.
Auth::config(array(
'default' => array(
'adapter' => 'Cas',
'server' => 'http://localhost:9001/cas/login',
'service' => 'http://localhost:8000'
)
));
<?php
namespace app\extensions\adapter\security\auth;
use lithium\core\Libraries;
class Cas extends \lithium\core\Object {
protected $server = "";
protected $service = "";
public function __construct(array $config = array()) {
parent::__construct($config);
$this->server = $config['server'];
$this->service = $config['service'];
}
public function check($rules, $request) {
$args = func_get_args();
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment