authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author durandn
Mon, 02 Nov 2015 16:03:59 +0100
changeset 176 ba9f193121c3
parent 0 1afc9d2ab94d
permissions -rw-r--r--
Adjustements on Markers scenario (now displays a "teacher" markers row) + Added a new "markers_teacher" scenario to edit the teacher markers and browse user markers

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