Skip to content

Commit

Permalink
added trust output to new token generation
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Nov 21, 2024
1 parent dbb2661 commit b35e293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions token/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (f *factory) NewToken(ctx context.Context, r *Request) (string, error) {
return "", err
}

r.Logger.Info("new token", zap.Any("trust", merged[ClaimTrust]))
token := jwt.NewWithClaims(f.method, jwt.MapClaims(merged))
pair := f.pair.Load().(key.Pair)
token.Header["kid"] = pair.KID()
Expand Down

0 comments on commit b35e293

Please sign in to comment.