Use configurationService to set default authentication-shibboleth.lazysession.loginurl in getShibURL method

This commit is contained in:
Giuseppe Digilio
2020-03-13 19:31:50 +01:00
parent d665125788
commit 2044d33908

View File

@@ -1247,15 +1247,10 @@ public class ShibAuthentication implements AuthenticationMethod {
}
private String getShibURL(HttpServletRequest request) {
String shibURL = configurationService.getProperty("authentication-shibboleth.lazysession.loginurl");
String shibURL = configurationService.getProperty("authentication-shibboleth.lazysession.loginurl",
"/Shibboleth.sso/Login");
boolean forceHTTPS =
configurationService.getBooleanProperty("authentication-shibboleth.lazysession.secure",true);
// Shibboleth authentication initiator
if (shibURL == null || shibURL.length() == 0) {
shibURL = "/Shibboleth.sso/Login";
}
shibURL = shibURL.trim();
configurationService.getBooleanProperty("authentication-shibboleth.lazysession.secure", true);
// Shibboleth url must be absolute
if (shibURL.startsWith("/")) {