Repository: cxf-fediz Updated Branches: refs/heads/1.3.x-fixes 7ab93afa1 -> e8b7aac0b
Make sure we have an IdP token Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/e8b7aac0 Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/e8b7aac0 Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/e8b7aac0 Branch: refs/heads/1.3.x-fixes Commit: e8b7aac0b3950d67c71e22430e7a3cb610c61313 Parents: 7ab93af Author: Colm O hEigeartaigh <cohei...@apache.org> Authored: Mon Jul 24 17:38:48 2017 +0100 Committer: Colm O hEigeartaigh <cohei...@apache.org> Committed: Mon Jul 24 17:52:32 2017 +0100 ---------------------------------------------------------------------- .../org/apache/cxf/fediz/service/idp/beans/STSClientAction.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/e8b7aac0/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java ---------------------------------------------------------------------- diff --git a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java index 0d6c37d..ba1ba18 100644 --- a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java +++ b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java @@ -182,6 +182,10 @@ public class STSClientAction { throws Exception { SecurityToken idpToken = getSecurityToken(context, homeRealm); + if (idpToken == null || idpToken.getToken() == null) { + LOG.warn("No IdPToken is found"); + throw new ProcessingException(TYPE.BAD_REQUEST); + } Bus cxfBus = getBus(); Idp idpConfig = (Idp) WebUtils.getAttributeFromFlowScope(context, "idpConfig");