authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author durandn
Tue, 02 Jun 2015 10:41:10 +0200
changeset 9 3166a35f5f0d
parent 0 1afc9d2ab94d
permissions -rw-r--r--
Added CAS Auth middleware and CAS Login urls to remie platform + removed authserver/homestead/.vagrant from repo

<?php namespace TestCAS\Http\Middleware;

use Cas;
use Closure;

class CasAuthenticate
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        Cas::authenticate();
        return $next($request);
    }
}