ali-bouali / oauth2-social-login

This repository contains a Spring Boot 3 project that demonstrates how to secure an API with OAuth 2.0 and provide social login using GitHub, Google, and Facebook.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SecurityConfig class has deprecated methods being used.

Neelesh-Janga opened this issue · comments

I appreciate your work on simplifying the code but I am facing issue with deprecated methods. It would be helpful if your can rewrite it and push it again.

public class SecurityConfig {
 @Bean
 public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
   http
       .csrf()
       .disable()
       .authorizeHttpRequests()
       .anyRequest()
       .authenticated()
       .and()
       .oauth2Login()
   ;
   return http.build();
 }
}

I have no issue with that

@hendisantika I think they are deprecated in Spring Security 6

@hendisantika I think they are deprecated in Spring Security 6

Yes, it was.

Yes, it was.

Any one can send me PR for that?

Yes, it was.

Any one can send me PR for that?

Sure, I'll do. Only security config file, right?

@hendisantika done creating a PR, please have a look and let me know your comments, if any.
Here is the link: #2

Hence zero conflicts & and latest code has been under review, I am closing this issue.