OAuth2UserService should set Accept header to JSON #5294
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
in: web
An issue in web modules (web, webmvc)
type: enhancement
A general enhancement
Milestone
The
OAuth2UserService
implementations useNimbusUserInfoResponseClient
to fetch theUserInfo
resource and converts the response to aMap
usingMappingJackson2HttpMessageConverter
.NimbusUserInfoResponseClient
should explicitly set theAccept
header toapplication/json
as some provider's may default the content-type to another format other than JSON, for example, XML.The text was updated successfully, but these errors were encountered: