Skip to content

Commit

Permalink
Properly add claims to user object.
Browse files Browse the repository at this point in the history
  • Loading branch information
artagel authored and bnfinet committed May 2, 2019
1 parent 2ced6e1 commit aa2a4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/jwtmanager/jwtmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ func populateSites() {
}

// CreateUserTokenString converts user to signed jwt
func CreateUserTokenString(u structs.User) string {
func CreateUserTokenString(u structs.User, customClaims map[string]interface{}) string {
// User`token`
// u.PrepareUserData()
claims := VouchClaims{
u.Username,
Sites,
CustomClaims,
customClaims,
StandardClaims,
}

Expand Down

0 comments on commit aa2a4a2

Please sign in to comment.