From 87788f07106119db43b2fc3cd0daba1d6850902f Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Tue, 18 Dec 2012 13:56:46 -0500 Subject: [PATCH] let users visit home page without logging in --- .../openid/connect/web/ManagerController.java | 2 +- .../src/main/webapp/WEB-INF/tags/sidebar.tag | 20 ++++++++++++++----- .../src/main/webapp/WEB-INF/tags/topbar.tag | 14 ++++++++----- .../src/main/webapp/WEB-INF/views/home.jsp | 16 +++++++-------- 4 files changed, 32 insertions(+), 20 deletions(-) diff --git a/openid-connect-server/src/main/java/org/mitre/openid/connect/web/ManagerController.java b/openid-connect-server/src/main/java/org/mitre/openid/connect/web/ManagerController.java index 4c1c6ae4d..11dfeb40f 100644 --- a/openid-connect-server/src/main/java/org/mitre/openid/connect/web/ManagerController.java +++ b/openid-connect-server/src/main/java/org/mitre/openid/connect/web/ManagerController.java @@ -29,7 +29,6 @@ import org.springframework.web.bind.annotation.RequestMapping; */ @Controller -@PreAuthorize("hasRole('ROLE_USER')") // TODO: this probably shouldn't be here public class ManagerController { @Autowired @@ -45,6 +44,7 @@ public class ManagerController { return "home"; } + @PreAuthorize("hasRole('ROLE_USER')") // TODO: this probably shouldn't be here @RequestMapping("manage/**") public String showClientManager() { // TODO: move view diff --git a/openid-connect-server/src/main/webapp/WEB-INF/tags/sidebar.tag b/openid-connect-server/src/main/webapp/WEB-INF/tags/sidebar.tag index 762fbcba7..d5fd933c7 100644 --- a/openid-connect-server/src/main/webapp/WEB-INF/tags/sidebar.tag +++ b/openid-connect-server/src/main/webapp/WEB-INF/tags/sidebar.tag @@ -1,18 +1,28 @@ <%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
+ + + + +
+
You are not logged in.
+
+ +
+
\ No newline at end of file diff --git a/openid-connect-server/src/main/webapp/WEB-INF/tags/topbar.tag b/openid-connect-server/src/main/webapp/WEB-INF/tags/topbar.tag index 5dc07e377..c03d99867 100644 --- a/openid-connect-server/src/main/webapp/WEB-INF/tags/topbar.tag +++ b/openid-connect-server/src/main/webapp/WEB-INF/tags/topbar.tag @@ -11,22 +11,26 @@ OpenID Connect Server diff --git a/openid-connect-server/src/main/webapp/WEB-INF/views/home.jsp b/openid-connect-server/src/main/webapp/WEB-INF/views/home.jsp index eff0142a5..67d59fbe9 100644 --- a/openid-connect-server/src/main/webapp/WEB-INF/views/home.jsp +++ b/openid-connect-server/src/main/webapp/WEB-INF/views/home.jsp @@ -4,12 +4,10 @@ -
-fluid"> -
-fluid"> - - - - class="span10"> +
+
+ +

Welcome!

@@ -22,7 +20,7 @@

Learn more »

-
-fluid"> +

About

@@ -41,7 +39,7 @@

-
-fluid"> +

Current Statistics

@@ -53,7 +51,7 @@
-
+