cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/6] cxf-fediz git commit: [FEDIZ-168] Fix audienceURI validation
Date Fri, 03 Jun 2016 13:10:24 GMT
[FEDIZ-168] Fix audienceURI validation


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/3d97f138
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/3d97f138
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/3d97f138

Branch: refs/heads/1.2.x-fixes
Commit: 3d97f1380a2c8553c732b62dcbc76b75812b5905
Parents: 174059c
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Thu Jun 2 08:59:48 2016 +0200
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Jun 3 14:05:25 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/3d97f138/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
index 7da25cb..c2b8a67 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
@@ -105,7 +105,7 @@ public class SigninHandler<T> implements RequestHandler<T>
{
     protected boolean validateAudienceRestrictions(String audience, String requestURL) {
         // Validate the AudienceRestriction in Security Token (e.g. SAML) 
         boolean validAudience = audience == null;
-        if (validAudience) {
+        if (!validAudience) {
             // validate against the configured list of audienceURIs
             List<String> audienceURIs = fedizContext.getAudienceUris();
             for (String a : audienceURIs) {


Mime
View raw message