Commit Graph

705 Commits

Author SHA1 Message Date
Viktor Szépe
20b9daa8f3
Request::HEADER_X_FORWARDED_ALL is an integer
it is int(30)
2018-04-06 20:13:20 +02:00
Andrew
283413b256
update handler
remove comment suggesting to send reports to bug trackers in this method
2018-03-24 03:12:17 -05:00
Taylor Otwell
4369e9144c add middleware 2018-03-14 12:40:35 -05:00
Taylor Otwell
a14e62325c customizable redirect on auth failure 2018-03-13 16:09:47 -05:00
Ricard
3332ff4cb2 add argon support to create method in RegisterController 2018-02-10 22:03:08 +01:00
Taylor Otwell
260a8ab2d0 wording 2017-12-19 08:21:38 -06:00
Taylor Otwell
0512abee6b
Merge pull request #4515 from dunglas/add-set-cache-headers-middleware
[5.6] Add the SetCacheHeaders middleware
2017-12-19 08:11:53 -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
Taylor Otwell
dabd0686be
Update Kernel.php 2017-12-18 19:30:09 -06:00
Taylor Otwell
bcaeb32430
Update Kernel.php 2017-12-18 19:29:49 -06:00
Kévin Dunglas
6e9c0c8852
Add the SetCacheHeaders middleware 2017-12-18 16:31:33 +01:00
Taylor Otwell
134eafd12c remove things that aren't usually customized 2017-07-19 17:45:57 -05:00
Taylor Otwell
396634857e use exception status 2017-07-19 17:26:48 -05:00
Taylor Otwell
c2e3cb9065 tweak default handler 2017-07-19 16:21:03 -05:00
Taylor Otwell
ebc18e3aef update comment 2017-07-17 09:12:08 -05:00
Taylor Otwell
5d54c21ea8 auto loads commands 2017-07-17 09:11:10 -05:00
DCzajkowski
1270a0b3a2 Fixed CI 2017-07-15 19:48:06 +02:00
Taylor Otwell
d75800052d change default 2017-07-11 16:53:04 -05:00
Taylor Otwell
d0ce75926f Merge branch 'master' into develop 2017-07-11 13:26:38 -05:00
Taylor Otwell
8999e8745e tweak method 2017-07-06 12:28:57 -05:00
Taylor Otwell
cec1b1bf94 fix error code 2017-07-06 12:27:35 -05:00
Taylor Otwell
4611d2bf31 stub listeners property 2017-07-06 12:08:40 -05:00
Taylor Otwell
3310063b59 add validation to exception handler 2017-07-06 11:49:51 -05:00
Lucas Michot
8ceb2fddb7 Fix docblock. 2017-07-03 11:17:19 +02:00
Brian Retterer
c9e47da895
Changes header keys for TrustProxies to non deprecated version 2017-06-28 17:52:56 -04:00
Mohamed Said
ef5bfb1dae update JSON error message 2017-05-25 09:48:50 +02:00
Taylor Otwell
11dfcf6d1a fix conflicts 2017-05-07 09:56:20 -05:00
Taylor Otwell
758392c30f clean up exception handler 2017-05-06 16:11:24 -04:00
Ilya Kudin
9aeef9812a More clear way to assign middleware in controller
Assign guest middleware to LoginController using documented way https://laravel.com/docs/5.4/controllers#controller-middleware 
to avoid confusing with $options array values meaning.
2017-04-18 19:13:35 +07:00
Taylor Otwell
2f111d54ba Merge branch 'master' into develop 2017-04-17 15:30:50 -05:00
Laurence Ioannou
99fca4daef Update RegisterController.php 2017-04-07 21:11:39 +01:00
Taylor Otwell
4696e7bcb6 fix conflicts 2017-04-07 08:11:06 -05: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
605ffb9ba9 rename example event 2017-03-25 21:17:15 -05:00
Fabrício Kneipp
39338373b9 Change hard-coded '/login' string to named route 2017-02-17 15:36:28 -02:00
Taylor Otwell
54c5e1585a Trim and convert strings to nulls. 2017-01-17 15:35:36 -06:00
Taylor Otwell
590257fbf6 Comment out by default. 2017-01-16 11:08:54 -06:00
Taylor Otwell
01ad31584b add auth session middleware to web group 2017-01-16 11:08:54 -06:00
Taylor Otwell
52f0196fd3 Move broadcast channel registration to a routes file.
These are very similar to routes in that they are channel endpoints
that your application supports and they also fully support route model
binding in Laravel 5.4. Upgraded applications do not need to make this
change if they do not want to.
2016-12-30 15:46:05 -06:00
Graham Campbell
36875bb98e Merge branch 'master' into develop 2016-12-29 13:03:32 +00:00
Taylor Otwell
077d404c5f list post check middleware 2016-12-19 12:36:33 -06:00
Joseph Silber
3e661aa9f5 Use path for group directly 2016-12-08 21:08:33 -05:00
Joseph Silber
ef1ef753ba Use fluent routes 2016-12-07 22:57:15 -05:00
Matt McDonald
fff42ec631 Redirect for registration only 2016-11-17 09:25:40 +00:00
Taylor Otwell
100c102fc3 convert binding 2016-10-28 10:09:03 -05:00
Taylor Otwell
fdef1b6fbe Merge pull request #4007 from vinkla/patch-1
Use fullpath for validator facade
2016-10-17 09:00:25 -05:00
Vincent Klaiber
6325610070 Use fullpath for validator facade
Added fullpath import for the validator facade.
2016-10-17 15:55:26 +02:00
Ron Melkhior
6b73fae8d7 Add redirectTo attribute to the reset password controller 2016-10-16 03:44:24 +03:00
Taylor Otwell
31fce5c503 change wording 2016-09-06 20:49:16 -05:00
Francisco Daniel
30d0e2dcca fix comments 2016-09-06 17:39:17 -05:00
Bryce Adams
78f4e85f74 Map API routes before Web routes 2016-09-05 20:54:21 +10:00
Taylor Otwell
f5dfa2057e fix typo 2016-08-23 15:14:23 +02:00
Taylor Otwell
6f6851946b fix conflicts 2016-08-23 15:08:01 +02:00
Mohamed Said
aed59d9f7a remove brackets 2016-08-21 01:17:41 +02:00
Mohamed Said
c0b95238c9 Remove defalut auth:api middleware 2016-08-21 01:01:52 +02:00
Taylor Otwell
c7a1c7d773 Ship a console routes file by default. 🌊 2016-08-16 19:44:31 -05:00
Lance Pioch
05235ee6bf Add TokenMismatchException to the dontReport array 2016-08-12 19:26:34 -04:00
Taylor Otwell
e49c8aeb05 Merge pull request #3867 from JosephSilber/remove-requests
[5.3] Delete app/Http/Requests directory
2016-08-11 20:57:23 -05:00
Taylor Otwell
7e41c61835 rename method 2016-08-10 14:21:02 -05:00
Joseph Silber
7b1ab65623 Delete app/Http/Requests directory 2016-08-10 12:30:17 -04:00
Taylor Otwell
30a9cbf54e Applied fixes from StyleCI 2016-08-05 16:44:47 -04:00
Taylor Otwell
9df814e512 Tweak a few broadcasting configurations. 2016-08-05 15:44:29 -05:00
Taylor Otwell
5fad3768cb Merge remote-tracking branch 'origin/develop' into develop 2016-08-05 14:28:29 -05:00
Taylor Otwell
41c0eec70c tweak broadcast service provider 2016-08-05 14:28:22 -05:00
Jordan Hoff
b7d684ef82 Compliance with commonly used phpmd rules 2016-08-03 10:10:35 -05:00
Taylor Otwell
ca7c973280 fix length 2016-08-01 08:51:52 -05:00
Taylor Otwell
133bd9ddd2 Merge pull request #3841 from ac1982/patch-1
[5.3] fix wrong spelling
2016-08-01 09:51:15 -04:00
Sercan Çakır
42930edb0c sort by name 2016-07-30 23:36:24 +03:00
Alex
813c9411b6 fix wrong spelling
applications
2016-07-30 14:30:05 +08:00
Taylor Otwell
8f66f4b6e9 Tweak default files. 2016-07-24 22:17:23 -05:00
Taylor Otwell
24766d479d redirect to home if authed 2016-07-23 15:39:33 -05:00
Taylor Otwell
73375150bb Merge remote-tracking branch 'origin/develop' into develop 2016-07-20 16:31:42 -05:00
Taylor Otwell
1cc411d17f remove directories. let them be jit created. 2016-07-20 16:30:46 -05:00
Taylor Otwell
93cdacf32c remove word 2016-07-18 10:41:51 -05:00
Kennedy Tedesco
76f9ea7e04 [5.3] Remove register() from BroadcastServiceProvider 2016-07-15 22:05:50 -03:00
Taylor Otwell
7ec26ce916 Tweak location of routes files. 2016-07-14 09:36:17 -05:00
Taylor Otwell
2b05ce3b05 Just use facades in service providers. 2016-07-11 15:44:50 -05:00
Taylor Otwell
677c1bdef3 import class 2016-07-10 16:35:03 -05:00
Taylor Otwell
b5a8c27991 add files 2016-07-10 15:31:28 -05:00
Taylor Otwell
9c817e7aef use new auth features 2016-07-10 15:31:23 -05:00
Taylor Otwell
e1696205c7 consistency 2016-07-10 11:35:03 -05:00
Taylor Otwell
4a44a0d3d5 no longer need this trait out of the box 2016-07-10 09:39:37 -05:00
Taylor Otwell
9ecfa9cf8e specify middleware directly 2016-07-10 08:48:46 -05:00
Taylor Otwell
02274da8fd code formatting 2016-07-09 11:27:46 -05:00
Kamaro Lambert
e3bd984b01 Removed unnecessary else 2016-07-09 11:44:42 +02:00
Taylor Otwell
9575714700 Add notifiable trait to default user. 2016-06-29 21:02:16 -05:00
Taylor Otwell
737b5eb3ef stub notifications 2016-06-22 09:57:59 -05:00
Taylor Otwell
b787586514 expects json 2016-06-22 08:48:58 -05:00
Joseph Silber
8e7672fc04 Return JSON for unauthenticated AJAX requests 2016-06-22 08:46:26 -04:00
Taylor Otwell
e5dfb05247 message updates 2016-06-06 21:43:34 -05:00
Graham Campbell
b6bd185048 Merge branch 'master' into develop 2016-05-30 12:03:49 +01:00
Joseph Silber
4f018159b8 Update can middleware to new namespace 2016-05-29 22:27:14 -04:00
Taylor Otwell
19f8537829 fix namespace 2016-05-26 13:53:39 -05:00
Taylor Otwell
233c93f810 Merge pull request #3787 from JosephSilber/core-authenticate
[5.3] Remove the Authenticate middleware
2016-05-26 13:49:15 -05:00
Joseph Silber
945052508f Use the Authenticate middleware from core 2016-05-26 13:07:11 -04:00
Taylor Otwell
cedde2d934 cleaning up 2016-05-26 10:00:14 -05:00
Taylor Otwell
3ddaf3f901 Merge pull request #3783 from JosephSilber/authenticate
[5.3] Make the Authenticate middleware throw an AuthenticationException
2016-05-26 08:16:54 -05:00
Taylor Otwell
c332ad9582 fix typo 2016-05-25 09:24:11 -05:00
Joseph Silber
d26314de20 Move the full response logic into the unauthenticated method 2016-05-25 09:49:44 -04:00
Joseph Silber
b069ff0d0c update exception handler with AuthenticationException 2016-05-22 15:00:52 -04:00
Joseph Silber
6dfc0229b2 Make the Authenticate middleware throw an AuthenticationException 2016-05-22 14:50:39 -04:00
Graham Campbell
728151f5de Applied fixes from StyleCI 2016-05-13 14:19:42 -04:00
Graham Campbell
332731f88b Added the new bindings middleware 2016-05-13 19:19:27 +01:00
Taylor Otwell
e7ff2bfb4d update method 2016-05-12 22:53:02 -05:00
Taylor Otwell
59f2d49074 stub out commands method in console kernel 2016-05-09 11:16:31 -05:00
Sadika Sumanapala
336d80c1f1 Get guest middleware using guestMiddleware() method
guestMiddleware() defined on ResetsPasswords trait

This change is required to fix issue #13383

Depends on pull request laravel/framework#13384
2016-04-30 12:39:22 +05:30
Taylor Otwell
da662e40ec working on broadcasting 2016-04-29 22:40:08 -05:00
Taylor Otwell
749528db0c remove unneeded trait 2016-04-28 10:28:26 -05:00
Graham Campbell
020bf231ba Merge branch 'master' into develop 2016-04-27 14:00:46 +01:00
Juan Martinez
0d8e71cd92 Update Kernel.php 2016-04-01 16:00:36 -05:00
Graham Campbell
541e66789b Fixed typo 2016-04-01 20:27:17 +01:00
Joseph Silber
39ba051a78 Add support for the authorize middleware and AuthorizesRequests trait 2016-03-30 11:58:14 -04:00
Graham Campbell
0909dc2572 Merge branch 'master' into develop 2016-03-30 13:11:35 +01:00
Joseph Silber
f7d05cbbaa Set the default driver from the Authenticate middleware 2016-03-28 09:48:35 -04:00
Taylor Otwell
e316be4cec Applied fixes from StyleCI 2016-03-23 18:05:26 -04:00
Taylor Otwell
bcc54357bd add to comment 2016-03-23 17:05:17 -05:00
Taylor Otwell
5c30c98db9 just use web group by default 2016-03-23 17:04:42 -05:00
Taylor Otwell
1d5e88d0fb update default routes file 2016-03-22 13:49:35 -05:00
Guilherme de Oliveira Gonzaga
9234300833 Update of the doc for equals to Model 2016-03-17 17:18:53 -03:00
Joseph Silber
703197e27a Allow passing multiple gaurds to the auth middleware 2016-03-17 10:22:19 -07:00
Jad Joubran
590593e0af Fixed order of password validation in registration 2016-03-02 20:48:02 +01:00
Taylor Otwell
754d78ec8e Merge remote-tracking branch 'origin/master' 2016-02-22 22:19:36 -06:00
Taylor Otwell
62d62a0524 update method call 2016-02-22 22:19:31 -06:00
Lucas Michot
73c6898e1d Ensure files finish with a LB 2016-02-22 10:23:06 +01: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
e46a73ddb7 Merge remote-tracking branch 'origin/master' 2016-01-14 10:08:58 -06:00
Taylor Otwell
c83c0b97f1 change exception 2016-01-14 10:08:49 -06:00
phecho
99b97ca7ca Change redirecTo in AuthController 2015-12-25 15:41:28 +08:00
Taylor Otwell
2b940ce5ec return statement not needed here 2015-12-23 12:02:21 -06:00
Vinicius Reis
8f6a6d8df0 Disable demonstration command
If the purpose of the command is to demonstrate, does not become nescessário leave it enabled by default.
2015-12-22 17:50:14 -02:00
Kennedy Tedesco
2e7560ab2a [5.2] Remove unused import 2015-12-21 20:23:09 -02:00
Taylor Otwell
895c5fead8 readable name 2015-12-16 15:18:11 -06:00
Taylor Otwell
3eb8613ff8 Comment fix. 2015-12-14 09:44:17 -06:00
Taylor Otwell
171de278d7 Note of explanation. 2015-12-13 14:31:22 -06:00
Taylor Otwell
a98759b264 Applied fixes from StyleCI 2015-12-11 17:50:16 -05:00
Taylor Otwell
b70dbaf7a1 define an api group as an example 2015-12-11 16:49:20 -06:00
Taylor Otwell
fa3495a28d comment changes 2015-12-11 16:31:19 -06:00
Taylor Otwell
527306a14c Remove terminology for "web routes". 2015-12-09 13:36:47 -06:00
Taylor Otwell
587e514719 Middleware groups, define web group, configure routes file. 2015-12-09 11:12:27 -06:00
Taylor Otwell
1d0853b638 Add throttle middleware. 2015-12-07 21:27:16 -06:00
Taylor Otwell
2ea2ae0f3f allow guard to be specified on middleaware 2015-12-05 21:56:17 -06:00
Taylor Otwell
c2c8ab6f5f line length 2015-12-05 21:52:46 -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
f426638445 Merge branch 'master' into develop 2015-12-02 18:24:27 +00:00
Graham Campbell
6722b10051 Fixed typo 2015-12-02 18:24:00 +00:00
Taylor Otwell
4eb28ba069 base controller doesn't have to be abstract. 2015-12-02 08:21:23 -06:00