From 2ced6e182013b2421e8ee626b340b5f028b104be Mon Sep 17 00:00:00 2001 From: artagel Date: Sat, 13 Apr 2019 11:25:51 +0400 Subject: [PATCH] Remove redunant claim object. Fix Claim to be a map of strings. --- pkg/cfg/cfg.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/cfg/cfg.go b/pkg/cfg/cfg.go index 6bd59bd2..81dde56c 100644 --- a/pkg/cfg/cfg.go +++ b/pkg/cfg/cfg.go @@ -44,14 +44,14 @@ type config struct { HTTPOnly bool `mapstructure:"httpOnly"` MaxAge int `mapstructure:"maxage"` } - Claims []string `mapstructure:"claims"` + Headers struct { - JWT string `mapstructure:"jwt"` - User string `mapstructure:"user"` - QueryString string `mapstructure:"querystring"` - Redirect string `mapstructure:"redirect"` - Success string `mapstructure:"success"` - Claims string `mapstructure:"claims"` + JWT string `mapstructure:"jwt"` + User string `mapstructure:"user"` + QueryString string `mapstructure:"querystring"` + Redirect string `mapstructure:"redirect"` + Success string `mapstructure:"success"` + Claims []string `mapstructure:"claims"` } DB struct { File string `mapstructure:"file"`