From c9b328d8c71018926dad00dfa83e762c66f0cb8c Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 2 Jun 2011 21:19:01 -0500 Subject: [PATCH] SEC-1757: Updated tutorial sample to state that listing of accounts is allowed by anyone and to display accounts for the different types of access to posting to Accounts --- .../tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp | 8 ++++++++ samples/tutorial/src/main/webapp/index.jsp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp b/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp index 61d2ce0473..b2200c8507 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp +++ b/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp @@ -12,6 +12,14 @@

Accounts

+

+Anyone can view this page, but posting to an Account requires login and must be authorized. Below are some users to try posting to Accounts with. +

+ Home

diff --git a/samples/tutorial/src/main/webapp/index.jsp b/samples/tutorial/src/main/webapp/index.jsp index efe4989a82..cf102f3111 100644 --- a/samples/tutorial/src/main/webapp/index.jsp +++ b/samples/tutorial/src/main/webapp/index.jsp @@ -18,7 +18,7 @@ Anyone can view this page.

-If you're logged in, you can list accounts. +While anyone can also view the list accounts page, you must be authorized to post to an Account from the list accounts page.

Your principal object is....: <%= request.getUserPrincipal() %>