From 9debf1486df20f1a6cdb7db3c3875179eabdd3da Mon Sep 17 00:00:00 2001 From: Justin Richer <jricher@mitre.org> Date: Wed, 18 Sep 2013 17:13:49 -0400 Subject: [PATCH] pass authorized and requested claims as strings to view --- .../mitre/openid/connect/web/UserInfoEndpoint.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 cac41f90f..6fb4fc235 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 @@ -68,13 +68,14 @@ public class UserInfoEndpoint { return "httpCodeView"; } - if (!Strings.isNullOrEmpty(claimsRequestJsonString)) { - model.addAttribute("claimsRequest", claimsRequestJsonString); - } - model.addAttribute("scope", auth.getOAuth2Request().getScope()); - model.addAttribute("requestObject", auth.getOAuth2Request().getExtensions().get("request")); + + model.addAttribute("authorizedClaims", auth.getOAuth2Request().getExtensions().get("claims")); + if (!Strings.isNullOrEmpty(claimsRequestJsonString)) { + model.addAttribute("requestedClaims", claimsRequestJsonString); + } + model.addAttribute("userInfo", userInfo); return "userInfoView";