Matt Hanley
f8e455e358
Fix type hint for case of trusting all proxies (string) ( #5025 )
2019-05-14 07:28:37 -06:00
Taylor Otwell
44d274174f
Revert "[5.8] Modify RedirectIfAuthenticated middleware to accept multiple guards"
2019-02-24 18:51:07 -06:00
Taylor Otwell
247f7f9619
Update RedirectIfAuthenticated.php
2019-01-16 09:05:51 -06:00
Te7a-Houdini
bb79dda1ff
Modify RedirectIfAuthenticated middleware to accept multiple guards
2019-01-14 17:47:22 +02:00
Dries Vints
6f3aa7a4c5
Don't redirect for api calls
...
When calling api routes the Authenticate middleware attempts to redirect you to the login page. If you expect JSON back or don't have auth routes then you don't want this to happen. By re-using the logic from Laravel's exception handler on which format to output we can also determine wether to redirect the user to the login page or give them a JSON error response.
2018-10-12 15:40:15 +02:00
Taylor Otwell
bf9836a785
Merge branch 'master' into develop
2018-07-19 07:48:44 -05:00
Tobias
6bd50e79a9
Adding boilerplate maintenance middleware with excepted URIs array
2018-07-12 01:13:44 +02:00
Taylor Otwell
b65c8245f7
formatting
2018-07-03 09:39:43 -05:00
Barry vd. Heuvel
76af90b50c
Add addHttpCookie to VerifyCsrfToken
2018-07-03 16:37:01 +02:00
Viktor Szépe
2683de7082
Request::HEADER_X_FORWARDED_ALL is an int
...
=30
2018-04-06 20:15:18 +02:00
Viktor Szépe
20b9daa8f3
Request::HEADER_X_FORWARDED_ALL is an integer
...
it is int(30)
2018-04-06 20:13:20 +02:00
Taylor Otwell
a14e62325c
customizable redirect on auth failure
2018-03-13 16:09:47 -05:00
Taylor Otwell
260a8ab2d0
wording
2017-12-19 08:21:38 -06:00
Chris Fidao
e823795325
using correct header to use "ALL" x-forwarded-* headers
2017-12-19 06:52:00 -06:00
Chris Fidao
6779a2759e
Trusted proxy to version 4.0 for laravel 5.6
2017-12-19 06:48:46 -06:00
Brian Retterer
c9e47da895
Changes header keys for TrustProxies to non deprecated version
2017-06-28 17:52:56 -04:00
Taylor Otwell
33c4cab6b7
adjust wording
2017-03-29 10:06:39 -05:00
Taylor Otwell
e23a1d284f
add trust proxy middleware
2017-03-29 10:05:16 -05:00
Taylor Otwell
54c5e1585a
Trim and convert strings to nulls.
2017-01-17 15:35:36 -06:00
Taylor Otwell
24766d479d
redirect to home if authed
2016-07-23 15:39:33 -05:00
Joseph Silber
945052508f
Use the Authenticate middleware from core
2016-05-26 13:07:11 -04:00
Joseph Silber
6dfc0229b2
Make the Authenticate middleware throw an AuthenticationException
2016-05-22 14:50:39 -04:00
Joseph Silber
f7d05cbbaa
Set the default driver from the Authenticate middleware
2016-03-28 09:48:35 -04:00
Joseph Silber
703197e27a
Allow passing multiple gaurds to the auth middleware
2016-03-17 10:22:19 -07:00
Jacob Bennett
5b3c5f3f4e
Don't return a login page to a JSON request
...
Currently, any unauthorized API requests that pass through the `auth` middleware get a redirect to the login page. Adding the `wantsJson` flag to the conditional corrects this behavior.
2016-01-22 10:01:39 -06:00
Taylor Otwell
2ea2ae0f3f
allow guard to be specified on middleaware
2015-12-05 21:56:17 -06:00
Taylor Otwell
ba7137dcb0
update routes and middleware
2015-12-03 23:11:04 -06:00
Taylor Otwell
a690bb7552
fix conflicts
2015-12-03 12:26:26 -06:00
Taylor Otwell
8414d45cdc
update middleware and config
2015-12-03 12:25:38 -06:00
Graham Campbell
6722b10051
Fixed typo
2015-12-02 18:24:00 +00:00
Jelle Spekken
39f0cd727a
Create a new middlware instance instead of filter.
...
Shouldn't this be middleware?
2015-12-02 08:59:51 +01:00
Martin Bean
223191a9b0
Change redirect when authenticated
...
The route /home doesn’t exist in a default Laravel application, whereas / does.
2015-11-19 23:01:29 +00:00
Taylor Otwell
f9ed4ff7ac
Override cookie encrypter by default.
2015-06-08 21:16:01 -05:00
Graham Campbell
bf3785d0bc
Additional cs fixes
...
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:45 +01:00
Patrick Brouwers
f1beeb4d3b
Remove redundant Closure namespace import in VerifyCsrfToken
2015-05-09 14:25:42 +02:00
Taylor Otwell
89f568156f
No need to override this by default anymore.
2015-04-30 14:59:22 -05:00
Taylor Otwell
b22a1f48c8
Fix typo.
2015-04-30 14:19:00 -05:00
Taylor Otwell
4e8d5533bd
Stub out except property.
2015-04-30 14:18:27 -05:00
Taylor Otwell
8909e75552
Some spacing.
2015-03-02 15:31:27 -06:00
Taylor Otwell
c9c0380b34
Just use helper function in middleware.
2015-03-01 21:35:37 -06:00
Taylor Otwell
4c78958b5b
Tweak a few things.
2015-02-22 22:37:16 -06:00
Taylor Otwell
cc2139ac91
Tweaking a few things.
2015-02-22 21:56:03 -06:00
Taylor Otwell
f424b87a63
PSR-2 for app.
2015-02-22 20:47:03 -06:00
Taylor Otwell
c3e3d9dc4b
Include CSRF middleware in base install for easy override / whitelist.
...
This makes it easy to skip CSRF verification for things like web hooks
and such from GitHub / Stripe.
2015-01-26 19:32:22 -06:00
Taylor Otwell
caa166f5d6
Remove middleware interface.
2015-01-05 13:16:21 -06:00
Taylor Otwell
634c96d8d9
Rename dashboard to home.
2014-11-24 19:33:07 -06:00
Taylor Otwell
f8aeffc76a
Tweak welcome view.
2014-11-24 11:47:49 -06:00
Taylor Otwell
ca2f02284c
Rename middleware to more "action" words.
2014-11-11 12:51:55 -06:00
Taylor Otwell
e02e3456ed
Update middleware reference.
2014-11-10 13:43:44 -06:00
Taylor Otwell
a98c0d64c7
Move middleware.
2014-11-10 13:38:19 -06:00