kilork / openid

OpenID Connect Rust Library
The Unlicense
63 stars 22 forks source link

Using `request_userinfo` with Google OpenID results in `Jose(UnsupportedOperation)`. #42

Closed xfbs closed 1 year ago

xfbs commented 1 year ago

Using request_userinfo with Google OpenID results in Jose(UnsupportedOperation). I have to manually make a request to https://www.googleapis.com/oauth2/v3/userinfo to get info. Is this a bug or am I using the library wrong? I can provide some code if needed.

kilork commented 1 year ago

Hi, I recently was changing this place. I would recommend to test with previous version, to check if this is the regression. If it is not solving your issue, maybe you may provide your code, because I test my implementation after updates with google variant first.

You may find example here: https://github.com/kilork/openid-examples/blob/main/examples/warp.rs

Also, user info endpoint seems to be different, if we look to discovery info:

https://accounts.google.com/.well-known/openid-configuration

"userinfo_endpoint": "https://openidconnect.googleapis.com/v1/userinfo",
kilork commented 1 year ago

No feedback, closing issue.