Set the encoding of the UserInfo response body to UTF-8

See http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse
pull/1079/merge
Nicolas Liampotis 2016-09-06 02:43:33 +03:00 committed by Justin Richer
parent 1b7612a26d
commit dea6044e77
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ public class UserInfoView extends AbstractView {
Set<String> scope = (Set<String>) model.get(SCOPE);
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
response.setCharacterEncoding("UTF-8");
JsonObject authorizedClaims = null;