Releases for sf 1.4
| Version |
License |
API |
Released |
|
1.0.5stable
|
MIT |
1.0.5stable
|
20/02/2012 |
|
1.0.3stable
|
MIT |
1.0.3stable
|
08/12/2011 |
|
1.0.1stable
|
MIT |
1.0.1stable
|
16/06/2011 |
|
1.0.0stable
|
MIT |
1.0.0stable
|
15/06/2011 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
1.0.5stable
|
MIT |
1.0.5stable
|
20/02/2012 |
|
1.0.1stable
|
MIT |
1.0.1stable
|
16/06/2011 |
|
1.0.0stable
|
MIT |
1.0.0stable
|
15/06/2011 |
Changelog for release 1.0.5 - 20/02/2012
Repackage, as the 1.0.3 was brocken (invalid version of phpCAS)
Other releases
Release 1.0.5 - 20/02/2012
Repackage, as the 1.0.3 was brocken (invalid version of phpCAS)
Release 1.0.3 - 08/12/2011
Merge files from GitHub repo: https://github.com/jeanmonod/sfCASPlugin
Release 1.0.1 - 16/06/2011
Release 1.0.0 - 15/06/2011
Symfony CAS Plugin (for symfony 1.4)
CAS (Central Authentication Service) is a SSO authentication system. More information (http://www.jasig.org/cas).
This plugin include the popular phpCAS librairies and map above and beyond the standard security features of symfony.
It provide a sfCASUser extending the sfBasicSecurityUser.
Installation
Install the plugin (via a package)
symfony plugin:install sfCASPlugin
Install the plugin (via a Git clone)
git clone git://github.com/jeanmonod/sfCASPlugin.git plugins/sfCASPlugin
Activate the plugin in the config/ProjectConfiguration.class.php
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
$this->enablePlugins(array(
'...',
'sfCASPlugin',
));
}
}
Configure your CAS server in app.yml:
all:
cas:
server_name: 'cas-server-name'
server_port: 8443
server_path: 'cas-path'
Secure your application
To secure a symfony application:
Enable the cas module in your settings.yml
all:
.settings:
enabled_modules: [ ... , cas]
Do not secure cas module, it is the module that allows the user to log in and out.
Change the default login and secure modules in settings.yml
.actions:
login_module: cas
login_action: login
Change the user class in factories.yml
all:
user:
class: sfCASUser
test:
user:
class: sfCASTestUser
You're done. Now, if you try to access a secure page, you will be redirected to the CAS server login page.