ef4aea97ef
use different variable name so returned function would not accidentally be able to use it in future and cause data race
2023-02-22 00:05:31 +02:00
4a1ccdfdc5
JWT, KeyAuth, CSRF multivalue extractors ( #2060 )
...
* CSRF, JWT, KeyAuth middleware support for multivalue value extractors
* Add flag to JWT and KeyAuth middleware to allow continuing execution `next(c)` when error handler decides to swallow the error (returns nil).
2022-01-24 22:03:45 +02:00
fcda0e8840
Add Cookie to KeyAuth middleware's KeyLookup
2021-08-02 22:44:59 +03:00
7256cb2274
add a custom error handler to key-auth middleware ( #1847 )
...
* add a custom error handler to key-auth middleware
2021-05-08 22:25:11 +03:00
842fc8772f
Fixed #1323
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2019-06-09 09:37:21 -07:00
6d9e043284
Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism
...
This reintroduces support for Go modules, as v4.
CloseNotifier() is removed as it has been obsoleted, see https://golang.org/doc/go1.11#net/http
It was already NOT working (not sending signals) as of 1.11 the functionality was gone, we merely
deleted the functions that exposed it. If anyone still relies on it they should migrate to using
`c.Request().Context().Done()` instead.
Closes #1268 , #1255
2019-01-30 16:11:42 +02:00
f49d166e6f
[FIX] Cleanup code ( #1061 )
...
Code cleanup
2018-02-21 10:44:17 -08:00
da083ffd0a
Implemented rewrite middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-12-28 11:26:50 -08:00
d174d65fd5
Update key_auth.go ( #984 )
...
Add ability to extract key from a form field
2017-12-28 09:32:14 -08:00
06189d002b
Fixed panic messages
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-22 22:48:23 -07:00
466d509e34
Fixed #938
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-05-27 03:10:51 -07:00
5f392f3bb1
Signature changed for key and basic auth validator
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-04-18 15:40:28 -07:00
52fa135fd5
Updated docs, exposed middleware.DefaultSkipper
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-01-28 11:46:43 -08:00
9fe724dedb
Fixed #802 , closes #773
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-01-05 12:38:39 -08:00
ee2ac3b9a2
Key auth validator now accepts context
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-01-03 20:48:21 -08:00
97c680662d
Fixed key auth middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-01-02 23:09:46 -08:00
412823eabb
Added key auth middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-01-02 20:12:06 -08:00