coreos / go-oidc

A Go OpenID Connect client.
Apache License 2.0
1.96k stars 395 forks source link

oidc: add StaticKeySet #337

Closed ericchiang closed 2 years ago

ericchiang commented 2 years ago

This has been extremely useful for testing, but I've been hesitant to add any API surface that references our underlying JOSE library.

Add a StaticKeySet that only accepts keys of type rsa.PublicKey and ecdsa.PublicKey.

ericchiang commented 2 years ago

cc @mitar

mitar commented 2 years ago

Awesome! This looks great and I can use it as-is.