[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security/authenticator ...

Shane Bryzak Shane_Bryzak at symantec.com
Mon Jul 31 22:04:54 EDT 2006


  User: sbryzak2
  Date: 06/07/31 22:04:54

  Modified:    src/main/org/jboss/seam/security/authenticator 
                        ProviderAuthenticator.java
  Log:
  Security stuff.. integrated JBoss authentication now works
  
  Revision  Changes    Path
  1.3       +4 -2      jboss-seam/src/main/org/jboss/seam/security/authenticator/ProviderAuthenticator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ProviderAuthenticator.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/authenticator/ProviderAuthenticator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- ProviderAuthenticator.java	31 Jul 2006 06:45:50 -0000	1.2
  +++ ProviderAuthenticator.java	1 Aug 2006 02:04:54 -0000	1.3
  @@ -27,10 +27,12 @@
     {
       for (AuthenticationProvider provider : providers)
       {
  -      provider.authenticate(authentication);
  +      Authentication result = provider.authenticate(authentication);
  +      if (result != null)
  +        return result;
       }
   
  -    return authentication;
  +    throw new AuthenticationException("Provider not found");
     }
   
     public void setProviders(List<String> providerNames)
  
  
  



More information about the jboss-cvs-commits mailing list