fixed minor bug institutional gui redirect
This commit is contained in:
parent
c0c5a4556b
commit
1dadca2eae
1 changed files with 8 additions and 0 deletions
|
@ -118,6 +118,11 @@ public final class InstitutionalAuthenticationEntryPoint implements Authenticati
|
||||||
|
|
||||||
if (StringUtils.isNoneBlank(institutionalEndpoint) && log.isDebugEnabled()) {
|
if (StringUtils.isNoneBlank(institutionalEndpoint) && log.isDebugEnabled()) {
|
||||||
log.debug("No default gui entrypoint requested: {}", institutionalEndpoint);
|
log.debug("No default gui entrypoint requested: {}", institutionalEndpoint);
|
||||||
|
} else {
|
||||||
|
request.getSession().setAttribute(INST_SUFFIX_ATTRIBUTE, null);
|
||||||
|
request.getSession().removeAttribute(API.PARAM_LOGO_IMAGE);
|
||||||
|
forwardToEntryPoint(request, response, this.guiEntryPoint, false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -198,6 +203,9 @@ public final class InstitutionalAuthenticationEntryPoint implements Authenticati
|
||||||
|
|
||||||
public static String extractInstitutionalEndpoint(final HttpServletRequest request) {
|
public static String extractInstitutionalEndpoint(final HttpServletRequest request) {
|
||||||
final String requestURI = request.getRequestURI();
|
final String requestURI = request.getRequestURI();
|
||||||
|
if (StringUtils.isBlank(requestURI) || requestURI.equals(Constants.SLASH.toString())) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Trying to verify institution from requested entrypoint url: {}", requestURI);
|
log.debug("Trying to verify institution from requested entrypoint url: {}", requestURI);
|
||||||
|
|
Loading…
Reference in a new issue