Skip to content

OAuth2UserService should set Accept header to JSON #5294

Closed
@jgrandja

Description

@jgrandja

The OAuth2UserService implementations use NimbusUserInfoResponseClient to fetch the UserInfo resource and converts the response to a Map using MappingJackson2HttpMessageConverter.

NimbusUserInfoResponseClient should explicitly set the Accept header to application/json as some provider's may default the content-type to another format other than JSON, for example, XML.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)in: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions