ramosbugs / openidconnect-rs

OpenID Connect Library for Rust
MIT License
404 stars 100 forks source link

How to get ID Token in JWT format from gitlab example? #139

Closed overheat closed 10 months ago

overheat commented 10 months ago

FYI.

Thanks

overheat commented 10 months ago

I saw signing_input in IdToken, but it only header +.+ payload. How can I get the whole JWT ID token with header, payload and signature.

ramosbugs commented 10 months ago

IdToken implements the ToString trait, so you can just do id_token.to_string() to get the raw JWT.