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

Function NewClaims

token/token.go:107–115  ·  view source on GitHub ↗

NewClaims returns the default claims with the given options added.

(opts ...Options)

Source from the content-addressed store, hash-verified

105
106// NewClaims returns the default claims with the given options added.
107func NewClaims(opts ...Options) (*Claims, error) {
108 c := DefaultClaims()
109 for _, fn := range opts {
110 if err := fn(c); err != nil {
111 return nil, err
112 }
113 }
114 return c, nil
115}
116
117// DefaultClaims returns the default claims of any token.
118func DefaultClaims() *Claims {

Callers 4

generateRenewTokenFunction · 0.92
RenewWithTokenMethod · 0.92
NewFunction · 0.92
TestNewClaimsFunction · 0.85

Calls 1

DefaultClaimsFunction · 0.85

Tested by 1

TestNewClaimsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…