Skip to content

Commit

Permalink
Merge branch 'branches/rudder/6.2' into branches/rudder/7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins CI authored and fanf committed Apr 26, 2022
2 parents 87aa2bd + 0e5e919 commit a1b0c36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions auth-backends/pom-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<!-- undeclared needed dependency -->
<!-- undeclared needed dependency - be careful, check compat of nimbus-jose with spring version too! -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand All @@ -102,7 +102,7 @@
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<version>8.22</version>
<version>9.12.1</version>
<exclusions>
<exclusion>
<groupId>net.minidev</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import org.springframework.security.oauth2.core.user.OAuth2User
import org.springframework.security.oauth2.core.oidc.user.OidcUserAuthority
import org.springframework.security.oauth2.core.user.OAuth2UserAuthority
import org.springframework.security.web.DefaultSecurityFilterChain
import org.springframework.security.web.authentication.AuthenticationFailureHandler
import org.springframework.security.web.authentication.AuthenticationSuccessHandler
import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler

Expand Down Expand Up @@ -213,7 +214,7 @@ class AuthBackendsSpringConfiguration extends ApplicationContextAware {
authenticationFilter.setFilterProcessesUrl(loginProcessingUrl)
authenticationFilter.setAuthorizationRequestRepository(authorizationRequestRepository)
authenticationFilter.setAuthenticationSuccessHandler(rudderOauth2AuthSuccessHandler)

authenticationFilter.setAuthenticationFailureHandler(applicationContext.getBean("rudderWebAuthenticationFailureHandler").asInstanceOf[AuthenticationFailureHandler])
(authorizationRequestFilter, authenticationFilter)
}

Expand Down

0 comments on commit a1b0c36

Please sign in to comment.