https://github.com/leo108/laravel_cas_server
A Laravel package provides CAS server
https://github.com/leo108/laravel_cas_server
cas cas-server laravel-cas laravel-cas-server php php-cas php-cas-server
Last synced: 6 months ago
JSON representation
A Laravel package provides CAS server
- Host: GitHub
- URL: https://github.com/leo108/laravel_cas_server
- Owner: leo108
- License: mit
- Created: 2016-08-13T09:37:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-13T11:52:43.000Z (about 2 years ago)
- Last Synced: 2024-03-14T22:51:02.539Z (over 1 year ago)
- Topics: cas, cas-server, laravel-cas, laravel-cas-server, php, php-cas, php-cas-server
- Language: PHP
- Homepage:
- Size: 146 KB
- Stars: 84
- Watchers: 7
- Forks: 35
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# CAS Server for Laravel
laravel_cas_server is a Laravel package that implements the server part of [CAS protocol](https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol-Specification.html) v1/v2/v3.
This package works for Laravel 5.5/5.6 . Please check 2.x branch if you are using Laravel 5.1 - 5.4 .
[](https://github.com/leo108/laravel_cas_server/releases)
[](LICENSE)
[](https://travis-ci.org/leo108/laravel_cas_server)
[](https://scrutinizer-ci.com/g/leo108/laravel_cas_server/code-structure)
[](https://packagist.org/packages/leo108/laravel_cas_server)## Requirements
- PHP >=7.0
## Installation && Usage
- `composer require leo108/laravel_cas_server`
-add `Leo108\CAS\CASServerServiceProvider::class` to the `providers` field in `config/app.php`
- `php artisan vendor:publish --provider="Leo108\CAS\CASServerServiceProvider"`
- modify `config/cas.php`, fields in config file are all self-described
- `php artisan migrate`
- make your `App\User` implement `Leo108\CAS\Contracts\Models\UserModel`
- create a class implements `Leo108\CAS\Contracts\TicketLocker`
- create a class implements `Leo108\CAS\Contracts\Interactions\UserLogin`
- visit `http://your-domain/cas/login` to see the login page (assume that you didn't change the `router.prefix` value in `config/cas.php`)## Example
If you are looking for an out of box solution of CAS Server powered by PHP, you can check [php_cas_server](https://github.com/leo108/php_cas_server)