MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / claimsFunc

Function claimsFunc

app/artifact-cas/internal/server/http.go:75–79  ·  view source on GitHub ↗

claimsFunc returns the claims function for the JWT middleware that casts the claims to the correct type

()

Source from the content-addressed store, hash-verified

73
74// claimsFunc returns the claims function for the JWT middleware that casts the claims to the correct type
75func claimsFunc() middlewares_http.ClaimsFunc {
76 return func() jwt.Claims {
77 return &casJWT.Claims{}
78 }
79}

Callers 3

verifyAndMarshalJWTFunction · 0.85
runProviderValidatorFunction · 0.85
NewHTTPServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected