authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author Nicolas Sauret <nicolas.sauret@iri.centrepompidou.fr>
Mon, 20 Jul 2015 17:37:14 +0200
changeset 50 b3880434c4ad
parent 0 1afc9d2ab94d
permissions -rw-r--r--
charte graphique itop

<?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);
    }
}