Skip to content

Commit

Permalink
Authentication compilation fixes for Spring 6
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydamage committed May 22, 2023
1 parent 55fad71 commit 70aaefb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Primary;
import org.springframework.core.annotation.Order;
import org.springframework.security.authentication.AuthenticationTrustResolver;
import org.springframework.security.authentication.AuthenticationTrustResolverImpl;
Expand Down Expand Up @@ -201,6 +202,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
}

@Bean
@Primary
public HttpSecurity httpSecurity() throws Exception {
AuthenticationManagerBuilder authenticationBuilder = new AuthenticationManagerBuilder(this.objectObjectPostProcessor);
authenticationBuilder.parentAuthenticationManager(authenticationManager());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package com.evolveum.midpoint.authentication.impl.saml;

import java.io.IOException;
import jakarta.servlet.http.ServletException;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import com.evolveum.midpoint.authentication.impl.handler.AuditedLogoutHandler;
Expand Down

0 comments on commit 70aaefb

Please sign in to comment.