summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/echo/middleware/csrf.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-21 00:48:10 +0100
committerWim <wim@42.be>2018-02-21 00:48:10 +0100
commit55ab0c12f12e2f0ee15dccd519e1fca4d011b73b (patch)
tree8d114d1129424e446a0124b9520d2ff3b2175369 /vendor/github.com/labstack/echo/middleware/csrf.go
parentd1227b5fc9de9f7a04fbf71292dd224aa8806411 (diff)
downloadmatterbridge-msglm-55ab0c12f12e2f0ee15dccd519e1fca4d011b73b.tar.gz
matterbridge-msglm-55ab0c12f12e2f0ee15dccd519e1fca4d011b73b.tar.bz2
matterbridge-msglm-55ab0c12f12e2f0ee15dccd519e1fca4d011b73b.zip
Update vendor labstack/echo
Diffstat (limited to 'vendor/github.com/labstack/echo/middleware/csrf.go')
-rw-r--r--vendor/github.com/labstack/echo/middleware/csrf.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/vendor/github.com/labstack/echo/middleware/csrf.go b/vendor/github.com/labstack/echo/middleware/csrf.go
index 5bbeecb4..0d2b7fd6 100644
--- a/vendor/github.com/labstack/echo/middleware/csrf.go
+++ b/vendor/github.com/labstack/echo/middleware/csrf.go
@@ -18,7 +18,7 @@ type (
Skipper Skipper
// TokenLength is the length of the generated token.
- TokenLength uint8 `json:"token_length"`
+ TokenLength uint8 `yaml:"token_length"`
// Optional. Default value 32.
// TokenLookup is a string in the form of "<source>:<key>" that is used
@@ -28,35 +28,35 @@ type (
// - "header:<name>"
// - "form:<name>"
// - "query:<name>"
- TokenLookup string `json:"token_lookup"`
+ TokenLookup string `yaml:"token_lookup"`
// Context key to store generated CSRF token into context.
// Optional. Default value "csrf".
- ContextKey string `json:"context_key"`
+ ContextKey string `yaml:"context_key"`
// Name of the CSRF cookie. This cookie will store CSRF token.
// Optional. Default value "csrf".
- CookieName string `json:"cookie_name"`
+ CookieName string `yaml:"cookie_name"`
// Domain of the CSRF cookie.
// Optional. Default value none.
- CookieDomain string `json:"cookie_domain"`
+ CookieDomain string `yaml:"cookie_domain"`
// Path of the CSRF cookie.
// Optional. Default value none.
- CookiePath string `json:"cookie_path"`
+ CookiePath string `yaml:"cookie_path"`
// Max age (in seconds) of the CSRF cookie.
// Optional. Default value 86400 (24hr).
- CookieMaxAge int `json:"cookie_max_age"`
+ CookieMaxAge int `yaml:"cookie_max_age"`
// Indicates if CSRF cookie is secure.
// Optional. Default value false.
- CookieSecure bool `json:"cookie_secure"`
+ CookieSecure bool `yaml:"cookie_secure"`
// Indicates if CSRF cookie is HTTP only.
// Optional. Default value false.
- CookieHTTPOnly bool `json:"cookie_http_only"`
+ CookieHTTPOnly bool `yaml:"cookie_http_only"`
}
// csrfTokenExtractor defines a function that takes `echo.Context` and returns