-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save id token #150
Comments
I don't think this has been intentionally omitted. The package has been used mostly to talk to Google APIs with less focus on sign-in (as I believe that's what needs the ID token?). If I understand correctly, this is a matter of updating the Without me trying to reproduce this... would you mind either adding the field yourself, testing your scenario, and sending a PR; or describing which field you would like to see from the JSON response ending up in |
I'd be happy to work up a PR when I get the chance, I just wanted to check that it would be well-received first. Thanks for the reply! |
Hey ! |
@arn-the-long-beard - I got distracted from this project, so I haven't actually written anything yet. If it's urgent for you now, feel free to give it a shot! Here's the It seems like just adding I should have more time to help next week if necessary. The id token should be a JWT, so it should be pretty straight-forward to verify it on the backend. and here are two relevant rust crates that both seem reasonably popular (I haven't tried either) |
Hey, I made it works just before I read your message, 😄 I used Tomorrow I will try the PR I think if it is fine for you but I do not understand everything in this library yet 😛 so even if my code will work, I might need guidance to not mess up the actual crate 😆 Also the code I have is very simple, I just pass the |
Hello!
I'm trying to use this library in a CLI with Google OAuth 2.0 using the installed flow to authenticate with my own backend. It seems like only the access token and expiration date are preserved. I'd like get the id_token as well to send to the backend, as recommended here.
The id_token shows up in my logs here
yup-oauth2/src/installed.rs
Lines 199 to 202 in 28e27b6
but then it seems to be discarded immediately since
TokenInfo
has noid_token
field.yup-oauth2/src/types.rs
Lines 58 to 66 in be4faf9
Is this just a current limitation of the package? Beyond the scope of the package? Intentionally omitted? Am I attempting something naive?
Thanks,
Oliver
The text was updated successfully, but these errors were encountered: