authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author durandn
Fri, 09 Sep 2016 11:01:58 +0200
changeset 196 1b539c9480f9
parent 0 1afc9d2ab94d
permissions -rw-r--r--
Imported mdplayer updates + Permalink on each comment (using AnnotationsList and Mediafragment) + view "iframe_hash" that forwards the hash to the iframe to test that the hash jump works properly

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