Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyFetcher ¶
KeyFetcher allows other parts of your code to implement a simple key lookup. Pair with jwk.FromRaw or similar for returning results.
type KeyHandler ¶
type KeyHandler struct {
Fetcher KeyFetcher
}
KeyHandler wraps a KeyFetcher to implement jws.KeyProvider. This is used in tandem with jwt.Parse to provide dynamic key lookup.
In a more complex system, you might add logging, metrics, caching, rate limiting...
Click to show internal directories.
Click to hide internal directories.