abcxyz / jvs

Apache License 2.0
8 stars 0 forks source link

feat: add public key API #28

Closed raserva closed 2 years ago

raserva commented 2 years ago

test:

curl -H "Authorization: Bearer $(gcloud auth print-identity-token )" \
> "https://<my_url>/.well-known/jwks"  

{"keys":[{"crv":"P-256","kid":"ver_22","kty":"EC","x":"XXXX","y":"XXXX"},{"crv":"P-256","kid":"ver_23","kty":"EC","x":"XXXX","y":"XXXX"},{"crv":"P-256","kid":"ver_16","kty":"EC","x":"XXXX","y":"XXXX"},{"crv":"P-256","kid":"ver_17","kty":"EC","x":"XXXX","y":"XXXX"}]}
raserva commented 2 years ago

Was able to remove the use of library github.com/lestrrat-go/jwx/jwk i