gorg / cas-bundle
Implements CAS Authentication on your website
Installs: 533
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 6
Open Issues: 2
Type:symfony-bundle
Requires
- php: >=5.3.2
- jasig/phpcas: ^1.3.2
- symfony/http-foundation: ~2.1
- symfony/routing: ~2.1
- symfony/security: ~2.1
This package is not auto-updated.
Last update: 2025-01-04 15:19:38 UTC
README
- Introduction
This file will help you to install and configure the project.
- Installation
a) Add the bundle to your composer.json file at the project root
"require": {
...
"gorg/casbundle": "master"
},
"repositories": {
"gorg": {
"type": "package",
"package": {
"name": "gorg/casbundle",
"version": "master",
"source": {
"url": "ssh://git@gofannon.gorgu.net:7999/GRAM/gorgcasbundle.git",
"type": "git",
"reference": "master"
}
}
}
},
b) Parameters Symfony sandbox for use GorgCasBundle
Please edit app/AppKernel.php file to update symfony Kernel
$bundles = array(
/*
...
*/
new Gorg\Bundle\CasBundle\GorgCasBundle(),
);
b) Parameters Symfony sandbox for use GorgCasBundle
Please edit app/config/config.yml and add the following line
gorg_cas:
user_class: Gorg\Bundle\UserBundle\Entity\User
mapping_role_attribute: type
mapping_username_attribute: username
c) Parameters Symfony sandbox for use Gorg CAS Authentication
Please edit app/config/security.yml file to update symfony security policy
# ...
# If you want you can use a custom user provider
# ...
providers:
CAS:
id: cas.user_provider
# ...
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
secured_area:
pattern: ^/demo/secured/
cas:
cas_server: auth.gadz.org
cas_port: 443
cas_path: /cas/
ca_cert_path: ~
cas_protocol: S1
cas_mapping_attribute: username
cas_logout: /logout