cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject [4/7] cxf-fediz git commit: [FEDIZ-53] Fix whr parameter reading
Date Tue, 09 Feb 2016 09:45:38 GMT
[FEDIZ-53] Fix whr parameter reading


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

Branch: refs/heads/1.2.x-fixes
Commit: b272bfa49f4a465452d5ca02f734028a64ea0db0
Parents: 71a1c65
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Thu Jan 7 11:31:02 2016 +0100
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Tue Feb 9 08:23:54 2016 +0100

----------------------------------------------------------------------
 .../cxf/fediz/core/handler/HomeRealmCallbackHandler.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/b272bfa4/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/HomeRealmCallbackHandler.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/HomeRealmCallbackHandler.java
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/HomeRealmCallbackHandler.java
index a87e2a0..1aa880a 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/HomeRealmCallbackHandler.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/HomeRealmCallbackHandler.java
@@ -24,8 +24,8 @@ import javax.security.auth.callback.Callback;
 import javax.security.auth.callback.CallbackHandler;
 import javax.security.auth.callback.UnsupportedCallbackException;
 
+import org.apache.cxf.fediz.core.FederationConstants;
 import org.apache.cxf.fediz.core.spi.HomeRealmCallback;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -39,11 +39,11 @@ public class HomeRealmCallbackHandler implements CallbackHandler {
         for (int i = 0; i < callbacks.length; i++) {
             if (callbacks[i] instanceof HomeRealmCallback) {
                 HomeRealmCallback callback = (HomeRealmCallback) callbacks[i];
-                String homeRealm = (String)callback.getRequest().getAttribute("whr");
+                String homeRealm = (String)callback.getRequest().getParameter(FederationConstants.PARAM_HOME_REALM);
                 if (homeRealm == null || homeRealm.length() == 0) {
                     LOG.debug("No home realm found in request");
                 } else {
-                    LOG.info("Home realm '" + homeRealm + "' found in request");
+                    LOG.info("Home realm '{}' found in request", homeRealm);
                     callback.setHomeRealm(homeRealm);
                 }
 


Mime
View raw message