diff options
author | Marvin Borner | 2018-07-20 16:34:32 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-20 16:34:32 +0200 |
commit | 74cb1477bb921a2378ea22a552b71a48c11e0931 (patch) | |
tree | 621ab17315be667c16dad8f3d5f44d67a7a47e8f /app/Http/Middleware | |
parent | 400591b34d4b0a6288834539808a9dede8a60e3a (diff) |
Better API (integrated oauth completely)
Diffstat (limited to 'app/Http/Middleware')
-rw-r--r-- | app/Http/Middleware/CheckForMaintenanceMode.php | 17 | ||||
-rw-r--r-- | app/Http/Middleware/EncryptCookies.php | 17 | ||||
-rw-r--r-- | app/Http/Middleware/RedirectIfAuthenticated.php | 26 | ||||
-rw-r--r-- | app/Http/Middleware/TrimStrings.php | 18 | ||||
-rw-r--r-- | app/Http/Middleware/TrustProxies.php | 23 | ||||
-rw-r--r-- | app/Http/Middleware/VerifyCsrfToken.php | 17 |
6 files changed, 0 insertions, 118 deletions
diff --git a/app/Http/Middleware/CheckForMaintenanceMode.php b/app/Http/Middleware/CheckForMaintenanceMode.php deleted file mode 100644 index 35b9824..0000000 --- a/app/Http/Middleware/CheckForMaintenanceMode.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -namespace App\Http\Middleware; - -use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware; - -class CheckForMaintenanceMode extends Middleware -{ - /** - * The URIs that should be reachable while maintenance mode is enabled. - * - * @var array - */ - protected $except = [ - // - ]; -} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php deleted file mode 100644 index 033136a..0000000 --- a/app/Http/Middleware/EncryptCookies.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -namespace App\Http\Middleware; - -use Illuminate\Cookie\Middleware\EncryptCookies as Middleware; - -class EncryptCookies extends Middleware -{ - /** - * The names of the cookies that should not be encrypted. - * - * @var array - */ - protected $except = [ - // - ]; -} diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php deleted file mode 100644 index e4cec9c..0000000 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -namespace App\Http\Middleware; - -use Closure; -use Illuminate\Support\Facades\Auth; - -class RedirectIfAuthenticated -{ - /** - * Handle an incoming request. - * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @param string|null $guard - * @return mixed - */ - public function handle($request, Closure $next, $guard = null) - { - if (Auth::guard($guard)->check()) { - return redirect('/home'); - } - - return $next($request); - } -} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php deleted file mode 100644 index 5a50e7b..0000000 --- a/app/Http/Middleware/TrimStrings.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php - -namespace App\Http\Middleware; - -use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware; - -class TrimStrings extends Middleware -{ - /** - * The names of the attributes that should not be trimmed. - * - * @var array - */ - protected $except = [ - 'password', - 'password_confirmation', - ]; -} diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php deleted file mode 100644 index 7daf51f..0000000 --- a/app/Http/Middleware/TrustProxies.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php - -namespace App\Http\Middleware; - -use Illuminate\Http\Request; -use Fideloper\Proxy\TrustProxies as Middleware; - -class TrustProxies extends Middleware -{ - /** - * The trusted proxies for this application. - * - * @var array - */ - protected $proxies; - - /** - * The headers that should be used to detect proxies. - * - * @var int - */ - protected $headers = Request::HEADER_X_FORWARDED_ALL; -} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php deleted file mode 100644 index 0c13b85..0000000 --- a/app/Http/Middleware/VerifyCsrfToken.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -namespace App\Http\Middleware; - -use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; - -class VerifyCsrfToken extends Middleware -{ - /** - * The URIs that should be excluded from CSRF verification. - * - * @var array - */ - protected $except = [ - // - ]; -} |