authserver/testCAS/app/Http/Middleware/CasAuthenticate.php
author durandn
Mon, 20 Jul 2015 11:00:17 +0200
changeset 38 9f6f302b8d09
parent 0 1afc9d2ab94d
permissions -rw-r--r--
added cas ticket url parameter name configuration (CAS_URLPARAMETER_NAME) for Cas Auth Middleware + removed iframe for copy project in iframetester

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