Vishal Rana
|
4850d69c30
|
Fixed basic-auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-09-05 10:20:10 -07:00 |
|
Vishal Rana
|
3d9d408365
|
Options for redirect middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-08-31 20:10:14 -07:00 |
|
Vishal Rana
|
86ae297e23
|
New redirect middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-08-27 13:03:40 -07:00 |
|
Vishal Rana
|
6dab126f64
|
Fixed godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-08-27 10:58:33 -07:00 |
|
Vishal Rana
|
bc7b992d23
|
Dropped custom error handler for jwt, closes #589, closes ##591
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-08-27 10:54:51 -07:00 |
|
Vishal Rana
|
98061d3ce3
|
Closes #633
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-08-21 09:52:20 -07:00 |
|
Vishal Rana
|
87dbea59f7
|
Minor refactor and format
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-08-20 09:35:19 -07:00 |
|
matcornic
|
2557d33c4b
|
Closes #631
|
2016-08-20 17:59:36 +02:00 |
|
ipfans
|
0b7959a57d
|
Rename RemoteIP to RealIP
|
2016-08-18 09:26:58 +08:00 |
|
Vishal Rana
|
27f9b326b8
|
Ability to skip a middleware via callback
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-07-27 09:34:44 -07:00 |
|
Vishal Rana
|
579cb79a41
|
Using random string from gommon
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-07-18 23:24:50 -07:00 |
|
Vishal Rana
|
0dab439ea4
|
Fixed #600
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-07-16 20:13:27 -07:00 |
|
Vishal Rana
|
c1358eda73
|
Generate CSRF token only if it is expired (#601)
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-07-16 10:22:24 -07:00 |
|
Vishal Rana
|
98d744b8fb
|
Fixed #597 (#598)
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-07-13 16:55:46 -07:00 |
|
Przemek Komosa
|
a8b48af608
|
Read JWT from cookie
Note: writing token to cookie is out of scope of this middleware
(exactly as in other reading methods).
|
2016-07-02 11:26:05 +02:00 |
|
Przemek Komosa
|
ae09482493
|
Add HandleEmptyToken to JWT middleware
Now it is possible to add custom handler for missing JWT.
|
2016-07-02 00:55:11 +02:00 |
|
Przemek Komosa
|
bb6baa2088
|
Add JWT tests for _query_ method
|
2016-07-02 00:28:56 +02:00 |
|
Przemek Komosa
|
4b6811e0cf
|
Refactor JWT tests to table based
Now state isn't shared.
|
2016-07-02 00:28:56 +02:00 |
|
Vishal Rana
|
d119b3bbfa
|
Fixed #584
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-06-28 17:38:12 -07:00 |
|
Vishal Rana
|
fbcdf70c52
|
Update JWT lib to v3
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-06-16 14:40:43 -07:00 |
|
Vishal Rana
|
f4088cf594
|
Added JSON logging
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-06-08 17:16:03 -07:00 |
|
Vishal Rana
|
c654c422c4
|
More coverage and better response adapter for standard/response
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-06-06 22:27:36 -07:00 |
|
Vishal Rana
|
74c8e254ff
|
Fixed docs
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-06-05 10:29:23 -07:00 |
|
Russ Egan
|
348edc31c6
|
fix index out of bounds if path is empty
|
2016-05-31 22:12:14 -04:00 |
|
anger
|
9225ce0f18
|
Add PATCH to default allowed methods
|
2016-05-31 15:41:09 +03:00 |
|
Vishal Rana
|
dc244c173d
|
Minor fix in jwt and csrf middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-26 19:23:46 -07:00 |
|
Vishal Rana
|
7e52ad4dd5
|
Changes to jwt and csrf middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-26 14:08:02 -07:00 |
|
Vishal Rana
|
b8c52b0432
|
Default config for static middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-23 11:31:25 -07:00 |
|
Vishal Rana
|
08a173b476
|
Enhanced body-limit middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-23 11:23:15 -07:00 |
|
Vishal Rana
|
ecb021f830
|
HTML5 mode in static middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-22 10:21:19 -07:00 |
|
Vishal Rana
|
702e6d0967
|
Closes #517, closes #518
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-22 07:58:21 -07:00 |
|
Vishal Rana
|
c6b32d5541
|
Added json tags to middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-18 18:53:54 -07:00 |
|
Vishal Rana
|
7d1819e5b1
|
Extractor for csrf token
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-13 08:18:00 -07:00 |
|
Vishal Rana
|
1aa22ce09b
|
Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-12 18:14:00 -07:00 |
|
Vishal Rana
|
98dd8bf9e9
|
Added CSRF middleware, #341.
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-12 17:45:00 -07:00 |
|
Vishal Rana
|
1afaa6ec0b
|
Updated docs, changes to static middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-10 11:52:04 -07:00 |
|
Vishal Rana
|
799c6cff2a
|
Upgraded gommon
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-10 08:59:55 -07:00 |
|
Vishal Rana
|
c4d6f16fc4
|
More tags in logger middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-10 07:57:35 -07:00 |
|
Vishal Rana
|
6b55156cb6
|
Fixed build
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-09 19:19:53 -07:00 |
|
Vishal Rana
|
ef1d00349e
|
Fixed #505
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-09 19:13:02 -07:00 |
|
Vishal Rana
|
e943ed24be
|
JWTAuth to JWT
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-07 07:45:03 -07:00 |
|
Vishal Rana
|
986338c805
|
Update README
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-04 23:33:05 -07:00 |
|
Vishal Rana
|
d81956058e
|
Update README with secure middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-03 11:42:42 -07:00 |
|
Vishal Rana
|
6424d779dc
|
Added test for secure middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-03 08:32:28 -07:00 |
|
Vishal Rana
|
f0526349ff
|
Fixed #499
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-02 22:41:07 -07:00 |
|
Vishal Rana
|
c31a524d05
|
Merge branch 'middleware-secure-header' of https://github.com/coderhaoxin/echo into coderhaoxin-middleware-secure-header
|
2016-05-02 20:21:26 -07:00 |
|
Vishal Rana
|
cb752141f2
|
Add form binding
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-01 12:38:51 -07:00 |
|
Vishal Rana
|
041252cfc8
|
Fixed #496
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-05-01 06:56:52 -07:00 |
|
Vishal Rana
|
b53170ace1
|
Updated readme
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-30 22:29:07 -07:00 |
|
Vishal Rana
|
368f2ab67e
|
Fixed fasthttp Request#SetBody
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-30 21:56:35 -07:00 |
|
Vishal Rana
|
0edb17e978
|
Added body limit middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-30 20:08:06 -07:00 |
|
Vishal Rana
|
a708a6781a
|
Fixed basic auth to return 401 for error cases
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-28 07:09:33 -07:00 |
|
haoxin
|
e2faa6c2be
|
middleware: add basic secure headers
|
2016-04-28 14:12:57 +08:00 |
|
Vishal Rana
|
bca2fd450e
|
Updated readme
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-27 22:03:54 -07:00 |
|
Vishal Rana
|
24a19223b0
|
Added method override middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-27 21:08:30 -07:00 |
|
Vishal Rana
|
7f819e4d71
|
Merge branch 'method' of https://github.com/coderhaoxin/echo into coderhaoxin-method
|
2016-04-27 19:14:24 -07:00 |
|
Vishal Rana
|
fb8690d42b
|
Fixed #488
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-26 02:10:57 -07:00 |
|
Vishal Rana
|
13648d06f3
|
Updated README.md with JWT middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-25 13:41:44 -07:00 |
|
Vishal Rana
|
02676bdb44
|
Added JWT middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-25 10:58:11 -07:00 |
|
Vishal Rana
|
be825e0229
|
Refactored variable names
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-24 10:22:15 -07:00 |
|
haoxin
|
592790bb43
|
middleware: add method override
|
2016-04-24 21:07:55 +08:00 |
|
zjx20
|
496ea19a80
|
Atomically write logs in the Logger middleware
|
2016-04-22 19:05:49 +08:00 |
|
Vishal Rana
|
c830734fd5
|
Fixed static middleware serving index.html
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-21 22:25:51 -07:00 |
|
Vishal Rana
|
1247552c9b
|
Fixed https://github.com/labstack/echox/issues/9
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-20 07:32:51 -07:00 |
|
Vishal Rana
|
1c2d6341ba
|
Fixed #474
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-18 16:59:58 -07:00 |
|
Vishal Rana
|
ce80fc8ea4
|
Fixed middleware test cases
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-16 16:02:22 -07:00 |
|
Vishal Rana
|
11eafe9b90
|
Fixed slash middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-13 13:48:33 -07:00 |
|
Vishal Rana
|
909f6dacf3
|
Update docs
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
|
2016-04-13 13:28:13 -07:00 |
|
Vishal Rana
|
b9aa2181b0
|
Trailing slash middleware with option to redirect
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-12 22:39:29 -07:00 |
|
Victor Gaydov
|
f8117ac7b3
|
Properly disable colors in Logger middleware
Fix bug when colours are enabled if non-os.File writer is used as
output io.Writer.
|
2016-04-11 13:46:59 -07:00 |
|
Vishal Rana
|
130c548826
|
Closes #459, #457.
- Static back as middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-10 20:56:10 -07:00 |
|
Vishal Rana
|
33700bfcc2
|
Fixed #457
- Dropped static middleware in favor of Echo#Static & Echo#StaticConfig.
- Enhanced middleware chaining.
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-09 14:00:23 -07:00 |
|
Vishal Rana
|
1a7bc677da
|
API changes from to with
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-07 21:20:50 -07:00 |
|
Vishal Rana
|
a8cf473ee7
|
Updated README.md with CORS middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-07 16:58:56 -07:00 |
|
Vishal Rana
|
a3352d880c
|
Fixed #454, Fixed #274
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-07 16:16:58 -07:00 |
|
Vishal Rana
|
e37b54e73f
|
Removed a print statement
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-06 11:07:56 -07:00 |
|
Vishal Rana
|
8b5772cf65
|
Proper header and MIME constants
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-06 07:29:47 -07:00 |
|
Vishal Rana
|
adad28012c
|
Default bool config as false for middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-05 18:57:57 -07:00 |
|
Vishal Rana
|
2dc1d53da5
|
Fixed #446
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-04 22:49:14 -07:00 |
|
Vishal Rana
|
b5d6c05101
|
Fixed #441, #294
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-02 14:24:51 -07:00 |
|
Vishal Rana
|
be5148ae27
|
Gzip fix #437
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-04-01 15:44:09 -07:00 |
|
Vishal Rana
|
1113413441
|
Defaults for middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-31 16:30:19 -07:00 |
|
Vishal Rana
|
1b3197a149
|
Middleware to add and remove trailing slash
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-31 12:38:48 -07:00 |
|
Vishal Rana
|
ba46c48cba
|
Enhanced static middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-31 08:41:02 -07:00 |
|
Vishal Rana
|
28ec39daaa
|
Context#StaticContent signature changed
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-27 21:03:35 -07:00 |
|
Vishal Rana
|
a2d757eddc
|
Closes #434
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-27 16:29:41 -07:00 |
|
Vishal Rana
|
16c6f478b1
|
Updated README.md
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-27 10:25:31 -07:00 |
|
Vishal Rana
|
3a67c062de
|
Updated godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-23 23:05:01 -05:00 |
|
Vishal Rana
|
910315ec5f
|
Updated godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-22 22:56:29 -05:00 |
|
Vishal Rana
|
a66162a3d2
|
Logging middleware fixes
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-21 17:27:14 -07:00 |
|
Vishal Rana
|
b47abdb9ec
|
Fixed #424, #427
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-20 08:14:55 -07:00 |
|
Vishal Rana
|
576dfeb71d
|
Close gzip writer
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-19 16:17:43 -07:00 |
|
Vishal Rana
|
c4caeb8ffb
|
more godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-19 15:47:20 -07:00 |
|
Vishal Rana
|
d01e856db6
|
Closes #423
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-19 08:38:35 -07:00 |
|
Vishal Rana
|
830b4eff3f
|
Some work on logger middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-18 22:25:11 -07:00 |
|
Vishal Rana
|
4a86175a32
|
Logger format
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-18 20:40:41 -07:00 |
|
Vishal Rana
|
abf389f91a
|
#410, actually timestamp.
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-18 20:29:53 -07:00 |
|
Vishal Rana
|
4d30b193ad
|
#410, actually timestamp.
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-18 20:02:02 -07:00 |
|
Vishal Rana
|
e159f4d7ef
|
Making Echo#Pre actually work.
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-17 13:24:52 -07:00 |
|
Vishal Rana
|
00bf0d651f
|
Enhanced recover middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
|
2016-03-14 16:14:33 -07:00 |
|