[seam-commits] Seam SVN: r12755 - modules/security/trunk/impl/src/main/java/org/jboss/seam/security/jaas.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue May 18 21:13:39 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-05-18 21:13:39 -0400 (Tue, 18 May 2010)
New Revision: 12755

Modified:
   modules/security/trunk/impl/src/main/java/org/jboss/seam/security/jaas/SeamLoginModule.java
Log:
roles no longer passed through the subject


Modified: modules/security/trunk/impl/src/main/java/org/jboss/seam/security/jaas/SeamLoginModule.java
===================================================================
--- modules/security/trunk/impl/src/main/java/org/jboss/seam/security/jaas/SeamLoginModule.java	2010-05-19 00:55:10 UTC (rev 12754)
+++ modules/security/trunk/impl/src/main/java/org/jboss/seam/security/jaas/SeamLoginModule.java	2010-05-19 01:13:39 UTC (rev 12755)
@@ -50,25 +50,6 @@
    public boolean commit() throws LoginException
    {        
       subject.getPrincipals().add(new SimplePrincipal(username));
-      
-      Group roleGroup = null;
-      
-      for ( Group g : subject.getPrincipals(Group.class) )      
-      {
-         if ( ROLES_GROUP.equalsIgnoreCase( g.getName() ) )
-         {
-            roleGroup = g;
-            break;
-         }
-      }
-
-      for (String role : roles)
-      {
-         roleGroup.addMember(new SimplePrincipal(role));
-      }
-      
-      subject.getPrincipals().add(roleGroup);
-      
       return true;
    }
 



More information about the seam-commits mailing list