1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-22 20:06:21 +02:00
Commit Graph

217 Commits

Author SHA1 Message Date
Vishal Rana
ee2ac3b9a2 Key auth validator now accepts context
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-03 20:48:21 -08:00
Vishal Rana
97c680662d Fixed key auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-02 23:09:46 -08:00
Vishal Rana
412823eabb Added key auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-02 20:12:06 -08:00
Vishal Rana
869cdcd19a Dropped Response#Writer/SetWriter functions
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-21 18:56:35 -08:00
Vishal Rana
d9a6052c67 Closes #489, Closes #781, Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-20 23:13:46 -08:00
Vishal Rana
562021ed2d fixed #781
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-20 13:58:45 -08:00
Vishal Rana
f5f75122ba fixed #750
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-19 11:43:24 -08:00
Vikram Sreekumar
23176c639e jwt-authscheme: support for custom jwt auth scheme
- added "AuthScheme" in the JWTConfig and set default value to
	  "Bearer".
	- added test case for validating JWT Auth with a custom auth
	  scheme.
2016-12-19 11:39:31 -08:00
Vishal Rana
5706940bc8 HTTPError#Message is now interface
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-10 22:05:41 -08:00
Michael Köppl
f0b235c108 Fix typo (#767) 2016-12-09 09:05:40 -08:00
Vishal Rana
fe269b3e1c fixed ##743
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-11-21 14:42:13 -08:00
Vishal Rana
2f70d3e1c7 fixed #712
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-11-12 20:34:52 -08:00
Vishal Rana
d832efd403 cors: not checking for origin header
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-11-12 14:05:41 -08:00
Antonio Pagano
4f1aef1469 Allows LoggerConfig to add new header, form, path and query tags (#708)
* [feature] implementing new log configuration tags for headers, form, query and path

* [refactor] merging all tests and removing path from the tags available for the logger

* [doc] updating middleware logger doc

* [tests] adding test cases for the other tags on the logger template

* [cleaning] moving h reference on tests to be a direct assignment given we dont need the reference to h anymore
2016-11-02 13:08:51 -07:00
Vishal Rana
cd36c4f813 fixed https://github.com/labstack/armor/issues/13
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-31 16:08:53 -07:00
Vishal Rana
c978ff6431 Removed static middleware in favor of Echo#Static
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-25 15:18:15 -07:00
Vishal Rana
2fbaf3a363 minor refactor, #677
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-25 08:08:46 -07:00
Vishal Rana
17c8b8f2ea logger new api, updated recipes
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-23 13:37:04 -07:00
Vishal Rana
0f219b59ec fixed https://github.com/labstack/armor/issues/12
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-22 17:23:15 -07:00
Vishal Rana
4760f4cedf fixed recipes for static middleware change
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-22 16:38:01 -07:00
Vishal Rana
166a24fe23 static middleware strip prefix config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-22 15:22:18 -07:00
Vishal Rana
954efac63a fixed #684
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-22 15:18:55 -07:00
Vishal Rana
2eb87f8036 param wildcard capture fixed to *
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-10 18:36:48 -07:00
Vishal Rana
8623669cbc removed Context#P()
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-10 18:22:13 -07:00
Vishal Rana
2507dc13e9 website and recipe in the main repo
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-01 20:49:22 -07:00
Vishal Rana
ef584add8c Enhanced redirect middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-28 10:26:02 -07:00
Vishal Rana
dd22cf9593 Updated deps
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-25 11:41:08 -07:00
Vishal Rana
1f1b211328 Fixed body-limit middleware test
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-22 23:01:46 -07:00
Vishal Rana
2aec0353f5 First commit to v3, #665
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-22 22:56:00 -07:00
Vishal Rana
862bee4ebd Fixed #647, fixed #656
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-14 15:37:21 -07:00
Vishal Rana
e980bd9055 Closes #647
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-07 12:18:57 -07:00
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