From a3d26edea37c7cd75705747a863889250eb76937 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Mon, 27 Jun 2005 02:06:33 +0000 Subject: [PATCH] JBoss container adapter to use getName() instead to toString() (see http://opensource.atlassian.com/projects/spring/browse/SEC-22). --- .../org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java | 2 +- doc/xdocs/changes.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java b/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java index 748baa60f5..cdaa7f36e3 100644 --- a/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java +++ b/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java @@ -239,7 +239,7 @@ public class JbossAcegiLoginModule extends AbstractServerLoginModule { super.log.debug("user is logged. redirecting to jaas classes"); identity = new PrincipalAcegiUserToken(this.key, - response.getPrincipal().toString(), + response.getName(), response.getCredentials().toString(), response.getAuthorities()); } diff --git a/doc/xdocs/changes.xml b/doc/xdocs/changes.xml index fd23d40898..1f97b3f080 100644 --- a/doc/xdocs/changes.xml +++ b/doc/xdocs/changes.xml @@ -41,6 +41,7 @@ Silently catch NotSerializableException in AbstractProcessingFilter if rootCause is not Serializable Remove getters and setters from JdbcDaoImpl so IoC container cannot modify MappingSqlQuerys Refactor DAO authentication failure events under a consistent abstract superclass + JBoss container adapter to use getName() instead to toString() (see http://opensource.atlassian.com/projects/spring/browse/SEC-22) Correct location of AuthenticationSimpleHttpInvokerRequestExecutor in clientContext.xml