nshmura
d28ea936d4
Add BasicAuth Realm support
2017-02-21 13:27:40 +09:00
Vishal Rana
a098bcd3b0
Updated docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-19 13:02:10 -08:00
Vishal Rana
0b53f397ad
Fixed static middleware - test
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-17 11:21:01 -08:00
Vishal Rana
0daffa37ce
Initial static middleware - #838
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-17 11:09:48 -08:00
Vishal Rana
7140e8395a
Using _fixture for testing
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-14 14:11:10 -08:00
Edward Muller
998c5de65f
Set the Content-Encoding header only when requested
...
Also if the Size == 0 unset the Content-Encoding header
2017-02-14 10:10:04 -08:00
Edward Muller
6f90742dec
Set the Content-Encoding header earlier for Static
...
Static uses ServeContent, which looks to see if the Content-Encoding
header is set or not to determine if it should set the Content-Length.
If Content-Length is set by something it will be wrong after the gzip
compression happens and stricter routers (and tools like curl) will
have problems with the request.
Fixes #806
2017-02-13 19:12:58 -08:00
Diego Siqueira
a8b6864be3
Two little typos on comments ( #835 )
2017-02-02 11:50:17 -08:00
Vishal Rana
52fa135fd5
Updated docs, exposed middleware.DefaultSkipper
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-28 11:46:43 -08:00
Vishal Rana
7025f55cab
Error for non 443 port for auto tls
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-23 15:39:19 -08:00
Vishal Rana
17d66313ff
Merge branch 'master' of https://github.com/labstack/echo
2017-01-21 10:21:02 -08:00
Vishal Rana
e8910be0ac
Updated deps and docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-21 10:20:59 -08:00
Peter Fern
8cd3cb043b
logger: Don't copy lock value in LoggerConfig.pool, use a pointer ( #825 )
...
Fixes #710 `go vet` failures
2017-01-21 10:18:34 -08:00
Vishal Rana
736d153c29
Startup banner
2017-01-14 12:49:58 -08:00
Vishal Rana
8526358e8a
Fixed logger middleware error return
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-12 16:08:12 -08:00
Vishal Rana
f56450d8ce
Fixed #821
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-12 09:09:51 -08:00
Vishal Rana
0696d55586
Updated logger docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-11 21:02:34 -08:00
Vishal Rana
ce6b1e20db
Logger middleware interface ( #820 )
...
* Modified logger format
Signed-off-by: Vishal Rana <vr@labstack.com>
* Logger middleware via struct
Signed-off-by: Vishal Rana <vr@labstack.com>
* Fixed time format
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-11 20:07:51 -08:00
Vishal Rana
9fe724dedb
Fixed #802 , closes #773
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-05 12:38:39 -08:00
Vishal Rana
4cbef06bef
Fixed basic auth middleware, closes #799
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-05 12:12:31 -08:00
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