Adding Spring Security with JWTs into a Java Project

preview_player
Показать описание
In this lesson we'll get Spring Security set up such that we can use it as our Authentication and Authorization security layer for our application.

We will also set things up such that it can be used with Json Web Tokens (JWTs), which is a stateless authentication mechanism. Stateless security is preferred when working with a Single Page App (SPA) like when using React as a front-end.

Other Important Links:
---------------------------

#springsecurity #jwt #react
Рекомендации по теме
Комментарии
Автор

WebSecurityConfigurerAdapter was renamed to SecurityConfigurerAdapter after Spring-Security Version 5.5.2

damianulloa
Автор

In Spring Security 5.7.0-M2 we deprecated the WebSecurityConfigurerAdapter, as we encourage users to move towards a component-based security configuration.

AFE
Автор

Man!, Your tutorial is INCREDIBLE waiting for toooo damn long, GREAT EXPLANATIONS!, very very great explanation, thank you very very much for your time, Greetings from Chile!.

gonzalooviedo
Автор

best spring boot ever !! greetings from south korea.

mmmcorp
Автор

Mehn thank you so much for the videos you've been putting out.

I can't help but notice the intro video... it's dope.

Also hope you're better now health wise. I remember you weren't feeling so well in the last episode.

The_Process_
Автор

Great course, can you please update it solving the depreciation issues.

haidertest
Автор

What can be the reason that IntelliJ cannot find WebSequrityConfigurerAdapter? I added the @EnableWebSecurity annotation to the SecurityConfig class and dependency to pom.

Veluracat
Автор

What's the predicted date of video about new Spring Security config for this part? Dunno if it's worth waiting or just to tryna solve it with help of other JWT tutorials and hope that the code will be compatible with next parts of this course.

maciej
Автор

Hello! I appreciate the work you are doing here! So helpful! It looks like WebSecurityConfigurerAdapter is deprecated. Any good resources to find out how to do this without WebSecurityConfigurerAdapter?

MaximumTheRayRay
Автор

WebSecurityConfigurerAdapter is deprecated in current spring security version.

linnn
Автор

Hello, an other amazing video <3 ..My congratulations !. So I was trying to create the SecurityConfig class extends from WSCA BUT I got this is deprecated "..and the name WSCA appear crossed out.

alaeddingarraoui
Автор

Sir i have two entities, two different tables, supplier and customer, two different logins, so how I can implement jwt!?

unmeshkadam
Автор

can you update JwT auth becoz this one is old plz update in video using securityfilterchain

Shubhxz
Автор

I got this error, how shall i correct this. Could you put some video regarding this.

mithunajhas
Автор

Hello Sir, recently I found your playlist and I was so happy and energetic and I was follow along with you until I came to this video. Due to the springboot version mismatch, I don't have WebSecurityConfigurerAdapter class anymore in springboot 3.2.2 and therefore I am unable to proceed. could you please guide me what should I do?? I really want to learn from you. if there is any other updated course?

COD_MW
Автор

hey great tutorial, by the way the problem 40:29 was that SpringConfig depends on the UserDetailsServiceImpl and the UserDetailsServiceImpl depends on SpringConfig

medAmineRg
Автор

Great tutorial vids!!! How to fix the WebSecurityConfigurerAdapter deprecated error?

keirjeffreyvelez
Автор

There is such thing as SimpleGrantedAuthority class

andrb
Автор

I have this problem anyone can resolved or know how resolve?
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-08-16 14:39:21.795 ERROR 8988 --- [ main] o.s.boot.SpringApplication : Application run failed

Error creating bean with name defined in class path resource Bean instantiation via factory method failed; nested exception is Failed to instantiate Factory method threw exception; nested exception is authenticationManager cannot be null
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at ~[classes/:na]
Caused by: Failed to instantiate Factory method threw exception; nested exception is authenticationManager cannot be null
at
at
... 19 common frames omitted
Caused by: authenticationManager cannot be null
at
at
at
at
at
at
at
at
at Method) ~[na:na]
at ~[na:na]
at ~[na:na]
at ~[na:na]
at
... 20 common frames omitted

ulisesguzman
Автор

Hey Trevor. For me is working without creating a CustomPasswordEncoder as I added the annotation @Configuration at SecurityConfig class and also in UserDetailsImpl instead of creating and injecting a new field PasswordEncoder, in user.setPassword(), I create a anonymous object of BCryptPasswordEncoder type to encode the password like: user.setPassword(new

grozageorge