Download the PHP package prayno/casauth-bundle without Composer
On this page you can find all versions of the php package prayno/casauth-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package casauth-bundle
CasAuthBundle
Basic CAS (SSO) authenticator for Symfony 3 and 4
This bundle provides a -very- basic CAS (http://jasig.github.io/cas/4.1.x/index.html) authentication client for Symfony 3 and 4.
Installation
Install the library via Composer by running the following command:
Next, enable the bundle in your app/AppKernel.php
file:
In config.yml (Symfony 3) or config/packages/p_rayno_cas_auth.yaml (create this file in Symfony 4), add these settings :
Note : the xml_namespace and options parameters are optionals
Modify your security.yml with the following values (the provider in the following settings should not be used as it's just a very basic example ; in production, create your own UserProvider and add its service name in providers:cas:id) :
And voila ! Your secured route should redirect you to your CAS login page which should authenticate you.
CAS global logout option
If you want your users to logout from the remote CAS server when logging out from your app, you should apply the following settings :
security.yaml:
services.yaml
Of course, you must set a "cas_logout_url" parameter in your app (eg. https://my_remote_cas_server/logout)
Don't forget to define a /logout route in your app
All versions of casauth-bundle with dependencies
symfony/dependency-injection Version ^3.0|^4.0|^5.0
symfony/http-foundation Version ^3.0|^4.0|^5.0
symfony/http-kernel Version ^3.0|^4.0|^5.0
symfony/security-bundle Version ^3.0|^4.0|^5.0
guzzlehttp/guzzle Version ^6.2