MCPcopy
hub / github.com/smallstep/cli / WithIssuer

Function WithIssuer

token/options.go:172–180  ·  view source on GitHub ↗

WithIssuer returns an Options function that sets the issuer to use in the token claims. If Issuer is not used the default issuer will be used.

(s string)

Source from the content-addressed store, hash-verified

170// WithIssuer returns an Options function that sets the issuer to use in the
171// token claims. If Issuer is not used the default issuer will be used.
172func WithIssuer(s string) Options {
173 return func(c *Claims) error {
174 if s == "" {
175 return errors.New("issuer cannot be empty")
176 }
177 c.Issuer = s
178 return nil
179 }
180}
181
182// WithSubject returns an Options that sets the subject to use in the token
183// claims.

Callers 5

TokenMethod · 0.92
generateRenewTokenFunction · 0.92
RenewWithTokenMethod · 0.92
TestNewFunction · 0.92
TestOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNewFunction · 0.74
TestOptionsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…