mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +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) {
|
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 =
|
boolean forceHTTPS =
|
||||||
configurationService.getBooleanProperty("authentication-shibboleth.lazysession.secure",true);
|
configurationService.getBooleanProperty("authentication-shibboleth.lazysession.secure", true);
|
||||||
|
|
||||||
// Shibboleth authentication initiator
|
|
||||||
if (shibURL == null || shibURL.length() == 0) {
|
|
||||||
shibURL = "/Shibboleth.sso/Login";
|
|
||||||
}
|
|
||||||
shibURL = shibURL.trim();
|
|
||||||
|
|
||||||
// Shibboleth url must be absolute
|
// Shibboleth url must be absolute
|
||||||
if (shibURL.startsWith("/")) {
|
if (shibURL.startsWith("/")) {
|
||||||
|
Reference in New Issue
Block a user