MCPcopy
hub / github.com/ardanlabs/service / KeyLookup

Interface KeyLookup

app/sdk/auth/auth.go:38–41  ·  view source on GitHub ↗

KeyLookup declares a method set of behavior for looking up private and public keys for JWT use. The return could be a PEM encoded string or a JWS based key.

Source from the content-addressed store, hash-verified

36// private and public keys for JWT use. The return could be a
37// PEM encoded string or a JWS based key.
38type KeyLookup interface {
39 PrivateKey(kid string) (key string, err error)
40 PublicKey(kid string) (key string, err error)
41}
42
43// Config represents information required to initialize auth.
44type Config struct {

Callers 2

GenerateTokenMethod · 0.65
AuthenticateMethod · 0.65

Implementers 3

keyStoreapp/sdk/auth/auth_test.go
KeyStoreapp/sdk/apitest/keystore.go
KeyStorefoundation/keystore/keystore.go

Calls

no outgoing calls

Tested by

no test coverage detected