Download the PHP package hanovate/cas without Composer
On this page you can find all versions of the php package hanovate/cas. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cas
CAS client for Laravel 7|8
This is a fork of subfission/cas updated to utilize Laravel's session management methods.
Refer to subfission/cas documentation for more details. This includes installation and usage procedures.
Simple CAS Authentication for Laravel 7.x and 8.x.
Tested on Laravel 7.6.1 as of 2020-04-15, Laravel 8.18.1 as of 2020-12-10
INSTALLATION
1. Install the package inside your project root folder:
2. Add the following two lines to your ./app/Http/Kernel.php
3. Add the following environment parameters in your ./.env
CAS_DEBUG, CAS_VERBOSE_ERRORS can be set to true if you want to see more detailed error message.
CAS_VERSION should be set to the CAS protocol version, not the CAS server version.
CAS_REDIRECT_PATH is the default address to go after the user is authenticated on the CAS server.
4. Run 'artisan vendor:publish' command and select ''cas''
USAGE
In order to define Gates inside ./app/Http/Providers/AuthServiceProvider.php, add the following lines:
In your route file (e.g. ./routes/web.php), the web middleware cas.auth can be used for the simple authentication.
LICENSE
The MIT License (MIT)
Copyright (c) 2017 Zach Jetson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.