set proper content type on user info JWT response

pull/620/merge
Justin Richer 2014-06-18 18:05:11 -04:00
parent 5f97ce0ca1
commit 5773fe195b
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ public class UserInfoJwtView extends UserInfoView {
StringWriter writer = new StringWriter();
gson.toJson(json, writer);
response.setContentType("application/jwt");
JWTClaimsSet claims = JWTClaimsSet.parse(writer.toString());
claims.setAudience(Lists.newArrayList(client.getClientId()));