MCPcopy
hub / github.com/marmotedu/iam / CacheStrategy

Struct CacheStrategy

internal/pkg/middleware/auth/cache.go:37–39  ·  view source on GitHub ↗

CacheStrategy defines jwt bearer authentication strategy which called `cache strategy`. Secrets are obtained through grpc api interface and cached in memory.

Source from the content-addressed store, hash-verified

35// CacheStrategy defines jwt bearer authentication strategy which called `cache strategy`.
36// Secrets are obtained through grpc api interface and cached in memory.
37type CacheStrategy struct {
38 get func(kid string) (Secret, error)
39}
40
41var _ middleware.AuthStrategy = &CacheStrategy{}
42

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected