Skip to content

Commit

Permalink
Merge branch 'Section-6-Video-3' into Section-7-Video-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Xantier committed Jan 13, 2018
2 parents b23ef56 + 7afad92 commit 72e03fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/user/src/main/kotlin/com/packtpub/UserConfig.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.packtpub

import org.springframework.context.support.BeanDefinitionDsl
import org.springframework.security.authentication.ReactiveAuthenticationManager
import org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.core.userdetails.ReactiveUserDetailsService
import org.springframework.security.web.server.SecurityWebFilterChain
Expand Down Expand Up @@ -33,7 +33,7 @@ fun BeanDefinitionDsl.securityBeans(paths: ServerHttpSecurity.AuthorizeExchangeS
.paths(ref())
.anyExchange().authenticated()
.and()
.authenticationManager(ReactiveAuthenticationManager(ref()))
.authenticationManager(UserDetailsRepositoryReactiveAuthenticationManager(ref()))
.formLogin()
.and()
.build()
Expand Down

0 comments on commit 72e03fd

Please sign in to comment.