Skip to content

Conversation

@freesteph
Copy link

Though user information is usually returned as plain JSON, the spec does allow a JWT as well1:

The UserInfo Claims MUST be returned as the members of a JSON object
unless a signed or encrypted response was requested during Client Registration.

I'm working with a provider that only returns JWT and does not allow Content-Type override. The workaround is to check the response's content type and parse the JWT if relevant.

Though user information is usually returned as plain JSON, the spec
does allow a JWT as well[1]:

> The UserInfo Claims MUST be returned as the members of a JSON object
unless a signed or encrypted response was requested during Client
Registration.

I'm working with a provider that only returns JWT and does not allow
Content-Type override. The workaround is to check the response's
content type and parse the JWT if relevant.

[1]: https://openid.net/specs/openid-connect-core-1_0.html#UserInfo
@freesteph
Copy link
Author

Sorry I did not see #106 🤦

freesteph added a commit to betagouv/standards-front that referenced this pull request Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant