[seam-commits] Seam SVN: r8300 - in trunk/src: test/integration/src/org/jboss/seam/test/integration/security and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed May 28 22:29:28 EDT 2008
Author: shane.bryzak at jboss.com
Date: 2008-05-28 22:29:28 -0400 (Wed, 28 May 2008)
New Revision: 8300
Modified:
trunk/src/main/org/jboss/seam/web/AuthenticationFilter.java
trunk/src/test/integration/src/org/jboss/seam/test/integration/security/SecurityTest.java
Log:
fixed broken references
Modified: trunk/src/main/org/jboss/seam/web/AuthenticationFilter.java
===================================================================
--- trunk/src/main/org/jboss/seam/web/AuthenticationFilter.java 2008-05-29 02:13:40 UTC (rev 8299)
+++ trunk/src/main/org/jboss/seam/web/AuthenticationFilter.java 2008-05-29 02:29:28 UTC (rev 8300)
@@ -298,7 +298,7 @@
public void process() throws ServletException, IOException, LoginException
{
Identity identity = Identity.instance();
- identity.setUsername(username);
+ identity.getCredentials().setUsername(username);
identity.authenticate();
}
}.run();
Modified: trunk/src/test/integration/src/org/jboss/seam/test/integration/security/SecurityTest.java
===================================================================
--- trunk/src/test/integration/src/org/jboss/seam/test/integration/security/SecurityTest.java 2008-05-29 02:13:40 UTC (rev 8299)
+++ trunk/src/test/integration/src/org/jboss/seam/test/integration/security/SecurityTest.java 2008-05-29 02:29:28 UTC (rev 8300)
@@ -52,7 +52,7 @@
@Override
protected LoginContext getLoginContext() throws LoginException
{
- return new LoginContext("default", getSubject(), getDefaultCallbackHandler(),
+ return new LoginContext("default", getSubject(), getCredentials().createCallbackHandler(),
createMockJAASConfiguration());
}
}
@@ -90,11 +90,11 @@
// expected
}
- identity.setUsername("foo");
- identity.setPassword("bar");
+ identity.getCredentials().setUsername("foo");
+ identity.getCredentials().setPassword("bar");
- assert("foo".equals(identity.getUsername()));
- assert("bar".equals(identity.getPassword()));
+ assert("foo".equals(identity.getCredentials().getUsername()));
+ assert("bar".equals(identity.getCredentials().getPassword()));
assert("loggedIn".equals(identity.login()));
assert(identity.isLoggedIn());
More information about the seam-commits
mailing list