From dd391ebf3cbf2269d2b18deab982e744fdfbe313 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Sun, 16 Feb 2014 21:58:16 -0500 Subject: [PATCH] Display contacts, popup for image, cleanup of more info --- .../src/main/webapp/WEB-INF/views/approve.jsp | 87 ++++++++++++------- .../web/OAuthConfirmationController.java | 8 ++ 2 files changed, 65 insertions(+), 30 deletions(-) diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp b/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp index fba6a5b2c..8e6596f09 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp @@ -4,6 +4,7 @@ <%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="o" tagdir="/WEB-INF/tags"%> +<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
@@ -38,46 +39,74 @@ <%-- TODO: wire up to stats engine and customize display of this block --%> -
+
">

Caution:

- This software was dynamically registered and has been used by + This software was dynamically registered and it has been approved - user. + time previously.
    -
  • -
    - -
    +
  • +
-
-
- ${client.clientDescription} - - -
-
    + +
+
+ +
+ + +
+ ${client.clientDescription} + +
+ more information +
+
+
    + +
  • Home page: ">
  • +
    + +
  • Policy: ">
  • +
    + +
  • Terms of Service: ">
  • +
    + +
  • Administrative Contacts:
  • +
    +
+
+
-
@@ -91,10 +120,8 @@
- - You will be redirected to the following page - if you click Approve: - + You will be redirected to the following page + if you click Approve:
@@ -141,7 +168,7 @@ data-html="true" data-placement="right" data-trigger="hover" - data-title="Claim values:" + data-title="These values will be sent:" data-content="
    diff --git a/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java b/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java index a06f62e49..6021332db 100644 --- a/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java +++ b/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java @@ -46,6 +46,7 @@ import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.SessionAttributes; +import com.google.common.base.Joiner; import com.google.common.base.Splitter; import com.google.common.base.Strings; import com.google.common.collect.Sets; @@ -174,6 +175,13 @@ public class OAuthConfirmationController { model.put("count", count); + // contacts + if (client.getContacts() != null) { + String contacts = Joiner.on(", ").join(client.getContacts()); + model.put("contacts", contacts); + } + + return "approve"; }