Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { Handler(h fasthttp.RequestHandler) fasthttp.RequestHandler RotateTokenHandler(ctx *fasthttp.RequestCtx) }
type RedisHandler ¶
type RedisHandler struct {
// contains filtered or unexported fields
}
func NewRedisHandler ¶
func NewRedisHandler(client *redis.Client) *RedisHandler
func (*RedisHandler) Handler ¶
func (r *RedisHandler) Handler(h fasthttp.RequestHandler) fasthttp.RequestHandler
Handler will check each request of defined HTTP methods for CSRF token and rotate the new CSRF token as the response
func (*RedisHandler) RotateTokenHandler ¶
func (r *RedisHandler) RotateTokenHandler(ctx *fasthttp.RequestCtx)
RotateTokenHandler configure CSRF cookie for next request validation
Click to show internal directories.
Click to hide internal directories.