Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed May 24, 2022
2 parents 6082f50 + f68b711 commit f205aa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,13 @@ public void doFilter(ServletRequest request, ServletResponse response,
private void doFilterInternal(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest) request;
if (isPermitAllPage(httpRequest)) {
MidpointAuthentication mpAuthentication = (MidpointAuthentication) SecurityContextHolder.getContext().getAuthentication();

if (isPermitAllPage(httpRequest) && (mpAuthentication == null || !mpAuthentication.isAuthenticated())) {
chain.doFilter(request, response);
return;
}

MidpointAuthentication mpAuthentication = (MidpointAuthentication) SecurityContextHolder.getContext().getAuthentication();
AuthenticationWrapper authWrapper = defineAuthenticationWrapper();

if (AuthSequenceUtil.isIgnoredLocalPath(authWrapper.authenticationsPolicy, httpRequest)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ protected void configure(HttpSecurity http) throws Exception {

http.logout().clearAuthentication(true)
.logoutRequestMatcher(getLogoutMatcher(http, getPrefix() +"/logout"))
// .logoutUrl(stripEndingSlases(getPrefixOfModule()) +"/logout")
.invalidateHttpSession(true)
.deleteCookies("JSESSIONID")
.logoutSuccessHandler(createLogoutHandler());
Expand Down

0 comments on commit f205aa6

Please sign in to comment.