sebius77 / cas-bundle
Basic CAS (SSO) authenticator for Symfony 5.4 or more with the new authentication system inspired By PRayno/CasAuthBundle and Yraiso/casauth-bundle
Installs: 338
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- symfony/config: ^5.0|^6.4
- symfony/dependency-injection: ^5.0|^6.4
- symfony/http-client: ^5.0|^6.4
- symfony/http-foundation: ^5.0|^6.4
- symfony/http-kernel: ^5.0|^6.4
- symfony/security-bundle: ^5.0|^6.4
README
Bundle for SSO authentication in Symfony 5.4 or more and inspired By PraynoCasAuthBundle and yraiso/casauth-bundle
Installation
Install the bundle via Composer by running the following command :
composer require sebius77/cas-bundle
Configuration
Create the file config/packages/sebius77_cas.yaml and add :
sebius77_cas:
server_login_url: https://cas_server/cas
server_validation_url: https://cas_server/cas/serviceValidate
server_logout_url: https://cas_server/cas/logout
xml_namespace: cas
options: []
Modify your security.yaml
security:
enable_authenticator_manager: true
providers:
cas_user_provider:
id: sebius77.cas_user_provider
firewalls:
...
main:
logout: ~
provider: cas_user_provider
custom_authenticator: sebius77.cas_authenticator
entry_point: sebius77.cas_entry_point
access_control:
- { path: ^/, roles: ROLE_USER }
The changes to the package are :
- autoloading (PSR-0 to PSR-4)