mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 10:34:25 +00:00
Use configurationService to set default authentication-shibboleth.lazysession.loginurl in getShibURL method
This commit is contained in:
@@ -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("/")) {
|
||||
|
Reference in New Issue
Block a user