Skip to content

Commit

Permalink
Change filter execution time and adapt redirect URI
Browse files Browse the repository at this point in the history
  • Loading branch information
torsten-sap committed Mar 12, 2018
1 parent 3ab2a55 commit 7995f4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (reAuthenticationRequired) {
request.getSession().invalidate();
sendRedirect("/", requestParams, request, response);
sendRedirect(request.getRequestURL().toString(), requestParams, request, response);
} else {
filterChain.doFilter(request, response);
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/spring/login-ui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
<security:custom-filter after="FIRST" ref="httpsHeaderFilter"/>
<security:custom-filter before="CHANNEL_FILTER" ref="idpMetadataGeneratorFilter"/>
<security:custom-filter after="CHANNEL_FILTER" ref="samlFilter"/>
<security:custom-filter ref="reAuthenticationRequiredFilter" before="SECURITY_CONTEXT_FILTER" />
<security:custom-filter ref="reAuthenticationRequiredFilter" after="SECURITY_CONTEXT_FILTER" />
<form-login login-page="/login"
username-parameter="username"
password-parameter="password"
Expand Down

0 comments on commit 7995f4b

Please sign in to comment.