cduvray / jwt-authorizer

JWT authorization layer for Axum.
MIT License
69 stars 21 forks source link

Jwks refresh error for firebase JWT #59

Closed clotodex closed 2 months ago

clotodex commented 2 months ago

I cannot get JWT of firebase tokens to work. I have so far used a manual verification so I know that it CAN work.

    let mut builder = JwtAuthorizer::from_jwks_url("https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com");

This fails on the first refresh. Afaik it fails parsing it into a Jwk. Any thought on this or ideas on what I could try?

image

clotodex commented 2 months ago

Turns out one needs to use this url to get to the raw jwks: https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com