getarrays / userservice

Spring Security with JSON Web Token and Refresh Token
78 stars 45 forks source link

Spring Security without WebSecurityConfigureAdapter #3

Open cami-la opened 2 years ago

cami-la commented 2 years ago

Hi, Jr. How are you?

I'm try to implement JWT with the dependency implementation 'com.auth0:java-jwt:4.0.0', but now the WebSecurityConfigurerAdapter class is deprecated: https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter

So, I cannot override authenticationManagerBean() method to use AuthenticationManager in my CustomAuthenticationFilter reference.

Before: 2022-07-21_06-59

Now: 2022-07-21_06-45

Can you help me? This is my repository https://github.com/cami-la/reddit-clone-freeCodeCamp/tree/master/src/main/java/com/freecodecamp/redditclone/config

juniorro commented 2 years ago

Please take a look at the new configuration here: https://gist.github.com/getarrays/4d87c98cd01aaa026d1cf8fa07bbfc33

cami-la commented 2 years ago

Amazing! Thanksss.

Can I see these classes?

2022-07-21_09-35

juniorro commented 2 years ago

It's part of a paid course. Please see this link: https://www.getarrays.io/p/json-web-token-jwt-with-spring-security-and-angular