PublicKeySource is to be used by servers who need to acquire public key sets for verifying inbound request's JWTs.
| 19 | // PublicKeySource is to be used by servers who need to acquire public key sets for |
| 20 | // verifying inbound request's JWTs. |
| 21 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…