Commit Graph

616 Commits

Author SHA1 Message Date
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
Jelle Spekken 39f0cd727a Create a new middlware instance instead of filter.
Shouldn't this be middleware?
2015-12-02 08:59:51 +01:00
Yahya Uddin 7398548320 Remove unnecessary fully quantified name
The class is unnessarily fully quantified and is an warning that is also flagged up in popular IDE's such as PHPStorm. It is also arguably bad practice as it can lead to problems if directories are moved in the future.
2015-11-25 00:12:44 +00: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 a383c8447c Applied fixes from StyleCI 2015-10-31 14:40:32 -04:00
Taylor Otwell b89502ed82 Just use base user by default. 2015-10-30 14:14:51 -05:00
Graham Campbell 13b799196b Revert bad changes to the exception handler 2015-10-30 18:54:41 +00:00
Taylor Otwell c18ee4917d Remove unneeded table name. 2015-10-30 13:39:07 -05:00
Taylor Otwell 4b1322e9a0 Merge remote-tracking branch 'origin/develop' into develop 2015-10-29 09:59:38 -05:00
Taylor Otwell 58bc5273b8 add property by default 2015-10-29 09:59:32 -05:00
Ben Sampson 2a3743b0fa PSR-2 formatting of User model?
> Lists of implements MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one interface per line.

https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#41-extends-and-implements
2015-10-26 13:21:38 +00:00
Taylor Otwell d15ab4b82e Alpha order. 2015-10-14 09:34:10 -05:00
Taylor Otwell 68738b5015 Change exceptions to ignore. 2015-10-14 09:09:56 -05:00
Taylor Otwell 37363acacd Clean up exception handler. Add new ignores. 2015-10-14 08:46:25 -05:00
Taylor Otwell 5b08ff0b34 Merge branch 'master' into develop 2015-10-14 08:43:14 -05:00
crynobone 50357d8bab Use $this instead of parent.
Signed-off-by: crynobone <crynobone@gmail.com>
2015-09-21 12:00:44 +08:00
Graham Campbell e20ad70463 Merge branch 'master' into develop 2015-08-30 12:33:04 +01:00
Graham Campbell 35654d761d Applied fixes from StyleCI 2015-08-30 07:31:25 -04:00
Taylor Otwell 7d4b5d75ef Default auth service provider. 2015-08-29 20:27:18 -05:00
Taylor Otwell 420e813498 Implement interface. 2015-08-29 16:51:13 -05:00
Taylor Otwell 72a10c64c2 Define HasAbilities trait on default user. 2015-08-29 16:42:19 -05:00
Taylor Otwell c82c5eceda acl changes 2015-08-29 16:36:22 -05:00
Taylor Otwell f047f80dc0 fix incorrect method name in comment. 2015-08-08 08:07:23 -05:00
Taylor Otwell 9c66082972 fix type hitns 2015-08-06 12:49:41 -05:00
Taylor Otwell c131299976 fix conflicts 2015-08-06 12:43:57 -05:00
Taylor Otwell 395b69b540 fix status code 2015-08-06 12:07:35 -05:00
Taylor Otwell da7376d461 working on exception handling for model not found. 2015-08-06 12:07:04 -05:00
Graham Campbell 350a0f18df Merge branch 'master' into develop 2015-08-01 11:10:45 +01:00
Graham Campbell 614edf79d3 Fixed the exception handler 2015-07-13 19:51:20 +01:00
Taylor Otwell 901a45fd96 added throttles logins trait by default 2015-07-01 13:30:05 -05:00
Graham Campbell 7e303014b6 Sync with 5.0 2015-06-15 22:22:23 +01:00
Taylor Otwell f9ed4ff7ac Override cookie encrypter by default. 2015-06-08 21:16:01 -05:00
Nicolas Widart 58db25b9f5 Use the ::class notation
Prefix the namespace with \
2015-06-05 15:45:08 +02:00
Graham Campbell bf3785d0bc Additional cs fixes
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:45 +01:00
Graham Campbell 060938bc66 PSR-2
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:32 +01:00
Taylor Otwell 41472b79db Use signature to define name. 2015-05-13 13:44:43 -05:00
Taylor Otwell 2e1a1a6499 Base job use trait. 2015-05-11 13:46:51 -05:00
Taylor Otwell d502747428 Show example base variables. 2015-05-09 23:14:32 -05:00
Taylor Otwell b21d263e84 Use DispatchesJobs. 2015-05-09 17:11:52 -05:00
Patrick Brouwers f1beeb4d3b Remove redundant Closure namespace import in VerifyCsrfToken 2015-05-09 14:25:42 +02:00
Taylor Otwell 89e2d8e174 Auth controller stubs. 2015-05-01 23:04:32 -05: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 161ebdab36 Revert "[5.1] Add new middleware" 2015-04-22 08:26:24 -05:00
Taylor Otwell 2d9b6958ec Simplify opening routes. 2015-04-21 14:42:23 -05:00
Laurence Ioannou 3dcefec0bd Update Kernel.php 2015-04-19 15:13:32 +10:00
Taylor Otwell 3b7e6dcdca fix a bunch of stufF 2015-04-10 22:19:42 -05:00
Mark Kevin Que ddf92f9513 Defining global patterns before parent boot function call
Kindly check if my assumption is correct? In relation to this issue, http://stackoverflow.com/questions/28251154/laravel-5-0-dev-defining-global-patterns-is-not-working/29567578#29567578 and https://laracasts.com/discuss/channels/general-discussion/route-global-pattern-in-routeserviceprovider-not-working-in-laravel-5?page=1

or this could be a different issue/bug

thanks!
2015-04-10 13:59:42 -04:00
Austin H 0bbe752e87 Fix more spacing.
This converts AppServiceProvider to spaces since it wasn't and removes
a few empty lines after class declarations.
2015-03-20 20:30:50 -07:00
Taylor Otwell 5e11f87de2 Remove auth scaffolding to make it opt-in. 2015-03-18 12:55:56 -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 76d4c11c0f Merge branch 'master' into develop 2015-02-22 19:58:23 -06:00
Taylor Otwell 1500a18696 Tweak some jobs and names. 2015-02-20 20:49:06 -06:00
Taylor Otwell d2d9c79e4f Tweaks. 2015-02-16 23:37:05 -06:00
Taylor Otwell d5f285ba8b Simplify authentication. Remove service. 2015-02-16 23:36:48 -06:00
Mike Dugan 96e64ef66c remove unused use statements 2015-02-13 15:10:04 -05:00
Taylor Otwell 35acc5408c Simplify exception handler. 2015-02-06 13:37:48 -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 ad695e20bc Call parent boot. 2015-01-22 17:15:34 -06:00
Taylor Otwell 86b0ae0896 Merge pull request #3221 from billmn/patch-1
[5.0] Allow to use $router in routes file
2015-01-22 16:49:32 -06:00
Joseph Cohen a348910c07 Fix app event service provider contract 2015-01-22 16:00:54 -06:00
Taylor Otwell 0089439a33 A few tweaks. 2015-01-22 15:28:02 -06:00
Davide Bellini 82cf205242 Allow to use $router in routes file 2015-01-21 10:18:18 +01:00
Taylor Otwell 8780949bec Make route loading a little more explicit. 2015-01-20 16:09:01 -06:00
Taylor Otwell f248da36c3 Tweak doc blocks. 2015-01-20 11:11:43 -06:00
Taylor Otwell 013007a9e1 Move constructor to app. 2015-01-20 11:09:40 -06:00
Taylor Otwell 61ff20256b Moving auth constructor to app. 2015-01-20 11:06:17 -06:00
Taylor Otwell ce20ef22c1 Remove command suffix. 2015-01-07 15:29:01 -06:00
Taylor Otwell caa166f5d6 Remove middleware interface. 2015-01-05 13:16:21 -06:00
Taylor Otwell c1db7050ea Add a basic service provider for config overwriting. 2015-01-02 14:47:42 -06:00
Taylor Otwell dc384fe1f5 Stub out some folders for jobs / commands and events. 2014-12-27 16:45:14 -06:00
Taylor Otwell b60f57e77b Simplify routes file. 2014-12-23 16:45:03 -06:00
Taylor Otwell 9309699de1 Tweaking setup. 2014-12-04 21:13:15 -06:00
Taylor Otwell 2fc313b8b1 Clarify the type of response we're looking for. 2014-12-02 17:21:59 -06:00
Taylor Otwell 9db97c3285 Tweak a few error handling things. 2014-12-02 17:21:16 -06:00
Taylor Otwell 8ce0d263c1 Set fillable array. 2014-12-01 21:59:46 -06:00
Taylor Otwell 662bc27468 Merge pull request #3153 from Codeklopper/patch-2
Unused exception reference
2014-11-30 20:26:33 -06:00
Taylor Otwell 57a6e1ce72 Remove properties. 2014-11-30 19:55:11 -06:00
Taylor Otwell 5194a437d5 Add a note to the AppServiceProvider. 2014-11-30 14:12:20 -06:00
Taylor Otwell 6b939c477c Tweak some wording. 2014-11-29 20:14:23 -06:00
Taylor Otwell 50bdd8e33a Some wording. 2014-11-29 16:57:46 -06:00
Taylor Otwell 7ba858ddf1 Working on some customization. 2014-11-29 14:11:26 -06:00
Taylor Otwell 9083f48e97 Working on removing authentication boilerplate. 2014-11-29 13:55:38 -06:00
Codeklopper e05d7440b2 Unused exception reference 2014-11-27 11:39:23 +01:00
Taylor Otwell e558ac6eb2 Change wording. 2014-11-26 11:34:18 -06:00