MCPcopy
hub / github.com/nytimes/gizmo / PublicKeySource

Interface PublicKeySource

auth/keys.go:21–23  ·  view source on GitHub ↗

PublicKeySource is to be used by servers who need to acquire public key sets for verifying inbound request's JWTs.

Source from the content-addressed store, hash-verified

19// PublicKeySource is to be used by servers who need to acquire public key sets for
20// verifying inbound request's JWTs.
21type PublicKeySource interface {
22 Get(context.Context) (PublicKeySet, error)
23}
24
25// NewReusePublicKeySource is a wrapper around PublicKeySources to only fetch a new key
26// set once the current key cache has expired.

Callers 8

GetMethod · 0.65
NewPublicKeySetFromURLFunction · 0.65
TestResuseKeySourceFunction · 0.65
VerifyMethod · 0.65
GetAuthorizationTokenFunction · 0.65
TestIAMKeySourceFunction · 0.65
MiddlewareMethod · 0.65
callbackHandlerMethod · 0.65

Implementers 7

reuseKeySourceauth/keys.go
testKeySourceauth/keys_test.go
idKeySourceauth/gcp/identity.go
iamKeySourceauth/gcp/iam.go
testSavedItemsRepoexamples/servers/mysql-saved-items/ser
SavedItemsServiceexamples/servers/mysql-saved-items/ser
MySQLSavedItemsRepoexamples/servers/mysql-saved-items/ser

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…