cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject [1/3] cxf-fediz git commit: [FEDIZ-168] Fix audienceURI validation
Date Thu, 02 Jun 2016 10:19:14 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master e09350a98 -> d30ea588c


[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/a43a9887
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/a43a9887
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/a43a9887

Branch: refs/heads/master
Commit: a43a98875d6c30d884dcdc54a6fbeb3ce087e0ee
Parents: e09350a
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Thu Jun 2 08:59:48 2016 +0200
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Thu Jun 2 08:59:48 2016 +0200

----------------------------------------------------------------------
 .../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/a43a9887/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 00f3559..8526159 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
@@ -112,7 +112,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