A laravel package provides CAS server
Clone or download
leo108 Merge pull request #15 from sbtsrbayer/master
add routes for odd external service
Latest commit 96a46d7 Sep 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config 1. invalid pg-tickets when user logout Oct 28, 2016
database/migrations re-organize migration files Apr 3, 2018
src fix names of new v3 routes Aug 31, 2018
tests move cas_route into namespace Apr 3, 2018
.gitattributes readme Oct 12, 2016
.gitignore optimize code structure Oct 24, 2016
.scrutinizer.yml upgrade dependencies Apr 3, 2018
.travis.yml upgrade dependencies Apr 3, 2018
LICENSE readme Oct 12, 2016
composer.json laravel auto discovery Apr 3, 2018
phpunit.xml optimize tests Apr 22, 2017
readme.md laravel auto discovery Apr 3, 2018

readme.md

CAS Server for Laravel

laravel_cas_server is a Laravel package that implements the server part of CAS protocol 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 .

Latest Version Software License Build Status Coverage Status Total Downloads

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