diff --git a/authfilters/src/main/java/cz/incad/kramerius/auth/thirdparty/shibb/utils/ShibbolethUtils.java b/authfilters/src/main/java/cz/incad/kramerius/auth/thirdparty/shibb/utils/ShibbolethUtils.java index 7a646463fd..98e16303b3 100644 --- a/authfilters/src/main/java/cz/incad/kramerius/auth/thirdparty/shibb/utils/ShibbolethUtils.java +++ b/authfilters/src/main/java/cz/incad/kramerius/auth/thirdparty/shibb/utils/ShibbolethUtils.java @@ -42,7 +42,7 @@ public static boolean isUnderShibbolethSession(HttpServletRequest httpServletReq Enumeration headerNames = httpServletRequest.getHeaderNames(); while(headerNames.hasMoreElements()) { String hname = (String) headerNames.nextElement(); - if (hname.contains(SHIB_PROVIDER_KEY)) { + if (hname.toLowerCase().contains(SHIB_PROVIDER_KEY.toLowerCase())) { String headerValue = httpServletRequest.getHeader(hname); if ((headerValue != null) && (!headerValue.trim().equals(""))) { foundIdentityProvider = true; @@ -69,7 +69,7 @@ public static String getShibbolethSessionId(HttpServletRequest httpServletReques Enumeration headerNames = httpServletRequest.getHeaderNames(); while(headerNames.hasMoreElements()) { String hname = (String) headerNames.nextElement(); - if (hname.contains(SHIB_SESSION_KEY)) { + if (hname.toLowerCase().contains(SHIB_SESSION_KEY.toLowerCase())) { String headerValue = httpServletRequest.getHeader(hname); if ((headerValue != null) && (!headerValue.trim().equals(""))) { return headerValue;