Skip to content

Parse content type on userInfo Response to allow application/jwt;charset=UTF-8 #479

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SamuelWei
Copy link
Contributor

@SamuelWei SamuelWei commented May 6, 2025

In the current implementation the content type of the userInfo Reponse must be exactly application/jwt for signed and/or encrypted responses. However the OpenID Connect certification system is using application/jwt;charset=UTF-8 - therefore the strict content type check fails, resulting in empty scopes.

This PR extracts the content type and ignores the charset, so that the parsing of signed and/or encrypted responses is working again.

List of common tasks a pull request require complete

  • Changelog entry is added or the pull request don't alter library's functionality

@DeepDiver1975
Copy link
Collaborator

Unit tests please. THX

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.

2 participants