logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.37k stars 410 forks source link

bug: unable to call the user info endpoint when integrating Logto Cloud with rust openidconnect. #6589

Open AH-dark opened 2 days ago

AH-dark commented 2 days ago

Describe the bug

Based on the response in this GitHub issue, I suspect that the OIDC content provided by Logto may not fully comply with the standard.

When calling the userinfo endpoint with the openidconnect library, a parsing error occurred. This might suggest an issue with how the user information is being returned or formatted, potentially due to a deviation from the expected OpenID Connect standard in the response from Logto.

Expected behavior

This API should return a 200 status code along with JSON content compliant with the OIDC standard.

How to reproduce?

Retrieve user info using Rust’s openidconnect 3.5.0 and Logto Cloud.

Context

wangsijie commented 1 day ago

Coud you please provider a sample project to reproduce this issue? Or full error messages of the response, and your OIDC configurations.