From 2d772cbfcc0dbaca33cbe8c44193c2fab162716c Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Sun, 31 Jul 2005 00:58:48 +0000 Subject: [PATCH] Fix bug as reported by Jared Odulio on acegisecurity-developer 29 July 2005. --- samples/contacts/src/main/webapp/common/secure/debug.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/contacts/src/main/webapp/common/secure/debug.jsp b/samples/contacts/src/main/webapp/common/secure/debug.jsp index 5dc8df1896..50433fab66 100644 --- a/samples/contacts/src/main/webapp/common/secure/debug.jsp +++ b/samples/contacts/src/main/webapp/common/secure/debug.jsp @@ -4,7 +4,7 @@ <%@ page import="net.sf.acegisecurity.adapters.AuthByAdapter" %> <% - Authentication auth = SecurityContextHolder.getAuthentication(); + Authentication auth = SecurityContextHolder.getContext().getAuthentication(); if (auth != null) { %> Authentication object is of type: <%= auth.getClass().getName() %>

Authentication object as a String: <%= auth.toString() %>