Author: sohil.shah(a)jboss.com
Date: 2009-12-10 19:44:49 -0500 (Thu, 10 Dec 2009)
New Revision: 13861
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_1/identity/
modules/identity/branches/JBP_IDENTITY_BRANCH_1_1/identity/src/main/java/org/jboss/portal/identity/helper/IdentityTools.java
Log:
JBEPP-121 - CasAuthenticationValve forces login for requests matching the /sec pattern
Property changes on: modules/identity/branches/JBP_IDENTITY_BRANCH_1_1/identity
___________________________________________________________________
Name: svn:ignore
- output
target
test.properties
test.script
+ output
target
test.properties
test.script
.settings
.classpath
.project
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_1/identity/src/main/java/org/jboss/portal/identity/helper/IdentityTools.java
===================================================================
---
modules/identity/branches/JBP_IDENTITY_BRANCH_1_1/identity/src/main/java/org/jboss/portal/identity/helper/IdentityTools.java 2009-12-11
00:42:55 UTC (rev 13860)
+++
modules/identity/branches/JBP_IDENTITY_BRANCH_1_1/identity/src/main/java/org/jboss/portal/identity/helper/IdentityTools.java 2009-12-11
00:44:49 UTC (rev 13861)
@@ -51,24 +51,25 @@
{
SecurityConstraint constraint = constraints[i];
-
- SecurityCollection[] collections = constraint.findCollections();
-
- for (int j = 0; j < collections.length; j++)
+ if(constraint.getAuthConstraint())
{
- SecurityCollection collection = collections[j];
-
- String[] patterns = collection.findPatterns();
-
- for (int k = 0; k < patterns.length; k++)
- {
- String pattern = patterns[k];
-
- // Remove wildcards
- urls.add(pattern);
- }
+ SecurityCollection[] collections = constraint.findCollections();
+
+ for (int j = 0; j < collections.length; j++)
+ {
+ SecurityCollection collection = collections[j];
+
+ String[] patterns = collection.findPatterns();
+
+ for (int k = 0; k < patterns.length; k++)
+ {
+ String pattern = patterns[k];
+
+ // Remove wildcards
+ urls.add(pattern);
+ }
+ }
}
-
}
return urls;