Xb2555 commented on code in PR #7870:
URL: https://github.com/apache/incubator-seata/pull/7870#discussion_r2629906264


##########
console/src/main/java/org/apache/seata/console/config/WebSecurityConfig.java:
##########
@@ -79,60 +84,60 @@ public class WebSecurityConfig extends 
WebSecurityConfigurerAdapter {
     @Autowired
     private Environment env;
 
-    @Bean(name = BeanIds.AUTHENTICATION_MANAGER)
-    @Override
-    public AuthenticationManager authenticationManagerBean() throws Exception {
-        return super.authenticationManagerBean();
+    @Bean
+    public PasswordEncoder passwordEncoder() {
+        return new BCryptPasswordEncoder();
     }
 
-    @Override
-    protected void configure(AuthenticationManagerBuilder auth) throws 
Exception {
-        
auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());
+    @Bean
+    public AuthenticationManager authenticationManager() {
+        DaoAuthenticationProvider authenticationProvider = new 
DaoAuthenticationProvider(userDetailsService);

Review Comment:
   DaoAuthenticationProvider constructor is to accept UserDetailsService 
parameters and setUserDetailsService method has been deprecated
   <img width="895" height="126" alt="image" 
src="https://github.com/user-attachments/assets/6bfa0a01-e424-4e9d-ae64-6b6f7b2aa052";
 />
   <img width="933" height="126" alt="image" 
src="https://github.com/user-attachments/assets/3249c89d-32e6-4e6a-ad88-61d91e414164";
 />
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to