Skip to content

Commit

Permalink
Remove redunant claim object. Fix Claim to be a map of strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
artagel authored and bnfinet committed May 2, 2019
1 parent 0c33884 commit 2ced6e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/cfg/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 2ced6e1

Please sign in to comment.