Cas Authentification in Symfony 2
"require": {
"rizeway/cas-bundle": "0.1.x-dev"
},
$bundles = array(
new Rizeway\Bundle\CasBundle\RizewayCasBundle(),
);
Edit app/config/config.yml and add the your configuration
rizeway_cas:
url: casServer.com:443/cas
server: casServer.localhost:443/cas # (only if different from the url, for server to server requests)
cert: /my-key.cert # false to bypass
username_attribute: login
proxy: true # if you want to active the proxy cas mode
providers:
CAS:
id: my_user_provider
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
secured_area:
pattern: ^/demo/secured/
cas:
check_path: /login/check
logout:
path: /logout
success_handler: cas.security.handler.logout