Repository: cxf-fediz Updated Branches: refs/heads/master b330d0096 -> 71099cd18
Adding logging for the retrieved home realm Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/71099cd1 Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/71099cd1 Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/71099cd1 Branch: refs/heads/master Commit: 71099cd182f334ef59c584875d4df77ac524341a Parents: b330d00 Author: Colm O hEigeartaigh <[email protected]> Authored: Tue Dec 1 16:25:10 2015 +0000 Committer: Colm O hEigeartaigh <[email protected]> Committed: Tue Dec 1 16:46:47 2015 +0000 ---------------------------------------------------------------------- .../apache/cxf/fediz/service/oidc/HomeRealmCallbackHandler.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/71099cd1/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/HomeRealmCallbackHandler.java ---------------------------------------------------------------------- diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/HomeRealmCallbackHandler.java b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/HomeRealmCallbackHandler.java index 41186ad..673d261 100644 --- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/HomeRealmCallbackHandler.java +++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/HomeRealmCallbackHandler.java @@ -28,9 +28,13 @@ import javax.servlet.http.HttpServletRequest; import org.apache.cxf.fediz.core.spi.HomeRealmCallback; import org.apache.cxf.rs.security.oauth2.common.Client; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.context.ApplicationContext; public class HomeRealmCallbackHandler implements CallbackHandler { + + private static final Logger LOG = LoggerFactory.getLogger(HomeRealmCallbackHandler.class); public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (int i = 0; i < callbacks.length; i++) { @@ -47,6 +51,7 @@ public class HomeRealmCallbackHandler implements CallbackHandler { Client client = dataManager.getClient(clientId); if (client instanceof FedizClient) { callback.setHomeRealm(((FedizClient)client).getHomeRealm()); + LOG.debug("Retrieved home realm {}", callback.getHomeRealm()); } }
