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.
| 36 | // private and public keys for JWT use. The return could be a |
| 37 | // PEM encoded string or a JWS based key. |
| 38 | type 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. |
| 44 | type Config struct { |