rizeway / cas-bundle
CAs Authentification using PHP CAS
Installs: 287
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2024-11-04 11:58:48 UTC
README
Cas Authentification in Symfony 2
Installation
1- Add the dependency to your composer.json
"require": {
"rizeway/cas-bundle": "0.1.x-dev"
},
2- Add the bundle to your kernel app/AppKernel.php file to update symfony Kernel
$bundles = array(
new Rizeway\Bundle\CasBundle\RizewayCasBundle(),
);
3- Parameters Symfony sandbox for use 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
4- Edit app/config/security.yml file to add your provider and firewall
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