[seam-commits] Seam SVN: r7327 - trunk/src/main/org/jboss/seam/security.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Feb 1 13:51:16 EST 2008
Author: norman.richards at jboss.com
Date: 2008-02-01 13:51:16 -0500 (Fri, 01 Feb 2008)
New Revision: 7327
Modified:
trunk/src/main/org/jboss/seam/security/Identity.java
Log:
revert breaking changes
Modified: trunk/src/main/org/jboss/seam/security/Identity.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/Identity.java 2008-02-01 10:18:28 UTC (rev 7326)
+++ trunk/src/main/org/jboss/seam/security/Identity.java 2008-02-01 18:51:16 UTC (rev 7327)
@@ -301,11 +301,18 @@
* group from the user's subject.
*
*/
- public void unAuthenticate()
+ protected void unAuthenticate()
{
principal = null;
- subject = new Subject();
- username = null;
+
+ for ( Group sg : getSubject().getPrincipals(Group.class) )
+ {
+ if ( ROLES_GROUP.equals( sg.getName() ) )
+ {
+ getSubject().getPrincipals().remove(sg);
+ break;
+ }
+ }
}
protected LoginContext getLoginContext() throws LoginException
More information about the seam-commits
mailing list