MCPcopy Index your code
hub / github.com/smallstep/cli / WithJWTID

Function WithJWTID

token/options.go:208–216  ·  view source on GitHub ↗

WithJWTID returns a Options that sets the jwtID to use in the token claims. If WithJWTID is not used a random identifier will be used.

(s string)

Source from the content-addressed store, hash-verified

206// WithJWTID returns a Options that sets the jwtID to use in the token
207// claims. If WithJWTID is not used a random identifier will be used.
208func WithJWTID(s string) Options {
209 return func(c *Claims) error {
210 if s == "" {
211 return errors.New("jwtID cannot be empty")
212 }
213 c.ID = s
214 return nil
215 }
216}
217
218// WithKid returns a Options that sets the header kid claims.
219// If WithKid is not used a thumbprint using SHA256 will be used.

Callers 2

TokenMethod · 0.92
TestOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestOptionsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…