authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author durandn
Fri, 18 Sep 2015 12:58:47 +0200
changeset 154 cc84bf4cfc56
parent 0 1afc9d2ab94d
permissions -rw-r--r--
Changes to AnnotationsList and LatestAnnotations to display user full names, added a way for widgets to make request pre-draw in order to fill users data before drawing

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