Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamstar-enterprises authored Aug 11, 2024
1 parent 9b36ee4 commit 585eea5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Spring BFF/bff/auth/BffSecurityConfig.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.bff.auth

//import org.springframework.session.data.redis.ReactiveRedisIndexedSessionRepository
import com.example.bff.auth.configurations.ClientConfigurationSupport
import com.example.bff.auth.configurations.postprocessors.ClientAuthorizeExchangeSpecPostProcessor
import com.example.bff.auth.configurations.postprocessors.ClientReactiveHttpSecurityPostProcessor
Expand Down Expand Up @@ -34,6 +33,8 @@ import org.springframework.security.web.server.csrf.ServerCsrfTokenRepository
import org.springframework.security.web.server.util.matcher.OrServerWebExchangeMatcher
import org.springframework.security.web.server.util.matcher.PathPatternParserServerWebExchangeMatcher
import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
import org.springframework.session.data.redis.config.annotation.web.server.EnableRedisIndexedWebSession
import org.springframework.session.data.redis.config.annotation.web.server.EnableRedisWebSession
import org.springframework.web.util.UriComponentsBuilder
import java.net.URI
import java.util.*
Expand All @@ -45,7 +46,7 @@ import org.springframework.boot.autoconfigure.web.ServerProperties as NettyServe

@Configuration
@EnableWebFluxSecurity
//@EnableRedisWebSession
@EnableRedisIndexedWebSession
@Order(Ordered.LOWEST_PRECEDENCE - 1)
internal class BffSecurityConfig (
private val serverProperties: ServerProperties,
Expand Down Expand Up @@ -134,7 +135,7 @@ internal class BffSecurityConfig (
}

// session management
// this is handled in the success handler, delegatingAuthenticationSuccessHandler
// this is also handled in the success handler, delegatingAuthenticationSuccessHandler

// oauth2.0 client login
http.oauth2Login { oauth2 ->
Expand Down

0 comments on commit 585eea5

Please sign in to comment.