authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author durandn
Mon, 20 Jul 2015 10:45:02 +0200
changeset 36 3e47f3eb145b
parent 0 1afc9d2ab94d
permissions -rw-r--r--
Added filters for AnnotationsList and clicking support + copying and editing for LatestAnnotation

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