authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author rougeronj
Wed, 09 Sep 2015 12:13:28 +0200
changeset 108 00e42730e11a
parent 0 1afc9d2ab94d
permissions -rw-r--r--
position segment title under segments

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