authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author julien <julien@erret.com>
Fri, 31 Jul 2015 18:33:02 +0200
changeset 67 6e041b15bc78
parent 0 1afc9d2ab94d
permissions -rw-r--r--
Move the header title of the annotationList box and LatestAnnotation Box, inside the widget

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