Skip to content

NimbusOpaqueTokenIntrospector uses deprecated MediaType.APPLICATION_JSON_UTF8 #9353

@pedrodovale

Description

@pedrodovale

NimbusOpaqueTokenIntrospector.requestHeaders defines the header MediaType.APPLICATION_JSON_UTF8 which seems to be deprecated. In this bug report there's some details about it: spring-projects/spring-framework#22788

The IDP I'm currently using actually rejects the request to the token endpoint because of this, returning a message stating that the response mode is not supported.

It is possible to workaround this issue by setting a new converter using setRequestEntityConverter, with a converter that sets the MediaType.APPLICATION_JSON instead of the MediaType.APPLICATION_JSON_UTF8. However, shouldn't application/json be the configured MediaType by default?

Thank you in advance.

Metadata

Metadata

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions