From 5773fe195befff585cc10faaa27a4d29437739c9 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Wed, 18 Jun 2014 18:05:11 -0400 Subject: [PATCH] set proper content type on user info JWT response --- .../java/org/mitre/openid/connect/view/UserInfoJwtView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openid-connect-server/src/main/java/org/mitre/openid/connect/view/UserInfoJwtView.java b/openid-connect-server/src/main/java/org/mitre/openid/connect/view/UserInfoJwtView.java index 53d5f0e07..5664838d5 100644 --- a/openid-connect-server/src/main/java/org/mitre/openid/connect/view/UserInfoJwtView.java +++ b/openid-connect-server/src/main/java/org/mitre/openid/connect/view/UserInfoJwtView.java @@ -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()));