Commit Graph

199 Commits

Author SHA1 Message Date
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 62d62a0524 update method call 2016-02-22 22:19:31 -06: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
phecho 99b97ca7ca Change redirecTo in AuthController 2015-12-25 15:41:28 +08: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
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 58bc5273b8 add property by default 2015-10-29 09:59:32 -05:00
Taylor Otwell c82c5eceda acl changes 2015-08-29 16:36:22 -05:00
Taylor Otwell 901a45fd96 added throttles logins trait by default 2015-07-01 13:30:05 -05: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
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 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 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
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 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 caa166f5d6 Remove middleware interface. 2015-01-05 13:16:21 -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 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 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
Taylor Otwell e558ac6eb2 Change wording. 2014-11-26 11:34:18 -06:00
Codeklopper 11cf23b4f2 Unused exception reference 2014-11-26 15:04:23 +01:00
Taylor Otwell da0e510872 Cleaning up auth code. 2014-11-25 15:12:16 -06:00
Taylor Otwell 3c0a1cfb4b Use home as view. 2014-11-25 11:38:04 -06:00
Taylor Otwell 16357ad29b Authorize all requets. 2014-11-25 09:20:56 -06:00
Taylor Otwell d306965007 Organize requests differently. 2014-11-25 09:20:26 -06:00
Taylor Otwell 634c96d8d9 Rename dashboard to home. 2014-11-24 19:33:07 -06:00
Taylor Otwell 7a7e366da5 Simplify validation on register stuff. 2014-11-24 14:25:44 -06:00
Taylor Otwell 4803d6c8e2 Moe default requests. 2014-11-24 13:59:40 -06:00
Taylor Otwell a9c9b202b0 Remove comment. 2014-11-24 12:24:01 -06:00
Taylor Otwell da9dd7d389 Respect remember me setting. 2014-11-24 12:21:06 -06:00
Taylor Otwell f8aeffc76a Tweak welcome view. 2014-11-24 11:47:49 -06:00
Taylor Otwell fa978d0525 Working on default app structure. Login views. 2014-11-24 11:42:29 -06:00
Taylor Otwell b73e127ed0 Just use one controller call. 2014-11-22 11:33:18 -06:00
Taylor Otwell 8b70eabf39 Update the app skeleton. 2014-11-19 19:45:46 -06:00
Taylor Otwell 71a8e00f26 Merge branch 'schedule' into develop 2014-11-18 22:48:49 -06:00
Taylor Otwell a7e6a89c91 Add scheduled commands. 2014-11-18 22:48:38 -06:00
Taylor Otwell 9a0612fc26 Separate namespaces for when app is named. 2014-11-14 16:44:01 -05:00
Taylor Otwell ca2f02284c Rename middleware to more "action" words. 2014-11-11 12:51:55 -06:00
Taylor Otwell d2aebd283e Rename middleware. 2014-11-11 10:27:30 -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
Taylor Otwell 97287c89fe Update middleware. 2014-11-10 13:25:08 -06:00
Taylor Otwell 6e0a5603fe Update middleware list. 2014-11-10 10:20:41 -06:00
Taylor Otwell bdb839222d Check type of token. 2014-11-09 16:31:08 -06:00
Taylor Otwell 33efefa388 Fix redirects. 2014-11-06 13:16:29 -06:00
Taylor Otwell 754ea2656c Tweak wording. 2014-11-06 13:11:17 -06:00
Taylor Otwell 0c3f1c967c Merge pull request #3118 from miclf/patch-1
Prevent TokenMismatchException for HTTP OPTIONS requests
2014-11-06 13:10:14 -06:00
Taylor Otwell fcca359778 Working on middleware. 2014-11-05 11:18:00 -06:00
Taylor Otwell c494e83193 Merge pull request #3114 from matism/develop
new logout-method naming
2014-11-05 09:42:28 -06:00
Michaël Lecerf 70d516b7ce Prevent TokenMismatchException for HTTP OPTIONS requests
`OPTIONS` HTTP requests should be treated in the same way than `GET` requests by the `VerifyCsrfToken` middleware. Otherwise, an exception is thrown, thus preventing any `OPTIONS` route to work.
2014-11-05 13:09:12 +01:00
Taylor Otwell 1209ce7657 Working on exception handling. WIP. 2014-11-03 16:45:26 -06:00
Mathias e1b491065d new logout-method naming 2014-11-03 15:35:00 +01:00
Taylor Otwell ed4b97b33b Working on structure. 2014-11-02 10:22:56 -06:00
Taylor Otwell c398cda797 Tweak default request setup. 2014-11-02 10:21:14 -06:00
Taylor Otwell 5d8af6099e Remove extra line. 2014-11-02 10:09:55 -06:00
Taylor Otwell 0ee0c434a3 Changing default routing setup. 2014-11-02 10:02:20 -06:00
Taylor Otwell 36e0014a6a Fix a few password reminder things. 2014-10-22 19:16:05 -05:00
Taylor Otwell 9aed9debca Tweak how console commands are registered. 2014-10-21 10:27:26 -05:00
Taylor Otwell ec9edec9a2 Rename CSRF middleware. 2014-10-20 17:16:06 -05:00