Skip to content
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

Userinfo response content-type for spid is wrong #290

Closed
matteo-s opened this issue Dec 13, 2023 · 2 comments
Closed

Userinfo response content-type for spid is wrong #290

matteo-s opened this issue Dec 13, 2023 · 2 comments
Assignees

Comments

@matteo-s
Copy link

The docs at https://docs.italia.it/italia/spid/spid-cie-oidc-docs/it/versione-corrente/userinfo_endpoint.html#response say that userinfo response content-type MUST be application/jwt for spid. For CIE I could not find any requirement.

La response dello UserInfo Endpoint DEVE specificare nel "Content-Type" il valore "application/jwt".

The current implementation always returns application/jose as type.

return HttpResponse(jwe, content_type="application/jose")

@rglauco rglauco self-assigned this Dec 13, 2023
@peppelinux
Copy link
Member

https://www.iana.org/assignments/media-types/media-types.xhtml

includes both jose and JWT, I'm in favor to align to application/jwt since jose includes also JWS using json serialization, while JWT only uses compact serialization

@rglauco
Copy link
Collaborator

rglauco commented Dec 14, 2023

Verified with IPZS, uniformed use of application/jwt for both SPID and CIE. fixed in #291

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

No branches or pull requests

3 participants