From 1de2a61176c7115a67b1eb4d4e54453f41480097 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Sat, 28 Jun 2014 22:20:05 -0400 Subject: [PATCH] made accept header optional for user info request --- .../java/org/mitre/openid/connect/web/UserInfoEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openid-connect-server/src/main/java/org/mitre/openid/connect/web/UserInfoEndpoint.java b/openid-connect-server/src/main/java/org/mitre/openid/connect/web/UserInfoEndpoint.java index 977ba9601..5972ec1a9 100644 --- a/openid-connect-server/src/main/java/org/mitre/openid/connect/web/UserInfoEndpoint.java +++ b/openid-connect-server/src/main/java/org/mitre/openid/connect/web/UserInfoEndpoint.java @@ -61,7 +61,7 @@ public class UserInfoEndpoint { @PreAuthorize("hasRole('ROLE_USER') and #oauth2.hasScope('openid')") @RequestMapping(value="/userinfo", method= {RequestMethod.GET, RequestMethod.POST}, produces = {"application/json", "application/jwt"}) public String getInfo(@RequestParam(value="claims", required=false) String claimsRequestJsonString, - @RequestHeader(value="Accept") String acceptHeader, + @RequestHeader(value="Accept", required=false) String acceptHeader, OAuth2Authentication auth, Model model) { if (auth == null) {