authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author durandn
Wed, 05 Aug 2015 15:04:30 +0200
changeset 71 9abfe4f7a03f
parent 0 1afc9d2ab94d
permissions -rw-r--r--
fixed errors in AnnotationsController + added support for timeRange for PopCorn player (youtube etc) + fix slight mistake in timerange code

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