jmprathab / MyHome

A Java application which helps people to manage their apartment.
Apache License 2.0
89 stars 103 forks source link

Deprecated WebSecurityConfigurerAdapter needs to be updated. #279

Open Abhijeetmishr opened 1 year ago

Abhijeetmishr commented 1 year ago

⚠️ Is your feature request related to a problem? Please describe

In the lastest Springboot version WebSecurityConfigurerAdapter is deprecated.

💡 Describe the solution you'd like

I wanted to update the existing code for WebSecurityConfigurerAdapter in WebSecurity class to latest one.

🤚 Do you want to develop this feature yourself?

PratikS17 commented 1 year ago

Hi @Abhijeetmishr I would like to work on this issue.

My approach :

  1. Remove WebSecurityConfigurerAdapter
  2. Export SecurityFilterChain bean
  3. Instead of using configure(AuthenticationManagerBuilder), we export DaoAuthenticationProvider bean (child of AuthenticationProvider) and pass it to HttpSecurity’s authenticationProvider() method
  4. Export AuthenticationManager bean

Please let me know if my approach is correct or it needs some refactoring. If it sounds good then can you please assign this issue to me.

Thanks, Pratik

Abhijeetmishr commented 1 year ago

@PratikS17 yes you can start but I think this project is not active anymore because no one is replying to the queries.