Spring Boot + Spring Security + JWT from scratch - Java Brains

Spring Boot + Spring Security + JWT from scratch - Java Brains

Java Brains

4 года назад

1,017,134 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Java Brains
Java Brains - 26.10.2019 22:42

Important note: In the video, I provide the JWT secret as a constant variable in the Java class. As you might imagine, please don't do that in a real application!

It's not a good idea to check in passwords / secret keys in your code. You should get that from a setting / property file that's in a more secure location and not in your source code repository.
(Thanks to Olivier for pointing this out in the comments)

Ответить
majd killawe
majd killawe - 09.10.2023 12:01

Full deprecated course , Not Recommended

Ответить
Devanshu Gupta
Devanshu Gupta - 21.09.2023 15:48

Hi Kaushik Sir, I've few query regarding the WebSecurityCongigurerAdapter. I'm not able to get the import for this class. I'm using Spring Boot version 3.1.3. What changes I need to make so that I can use the Database authentication . Please do reply. Others are also open to help me here.

Ответить
NothingMuch
NothingMuch - 20.09.2023 11:24

Excellent !! Crystal Clear

Ответить
Arkoprobho Chatterjee
Arkoprobho Chatterjee - 17.08.2023 12:40

Hey, do you have any videos with the modern way of doing things (without WebSecurityConfigurerAdapter)? This video is pure gold and it would be tremendously useful if there was a video for whatever the new way is.

Ответить
Rajat Goyal
Rajat Goyal - 10.08.2023 01:26

WebSecurityConfigurerAdapter is now deprecated. It would be great if you could update the playlists accordingly. Great playlist to learn WebSecurity but this thing will help a lot.

Ответить
Ashutosh Chandra
Ashutosh Chandra - 01.08.2023 15:23

It would be more better if you provide the GIT hub link for same code.

Ответить
Kristina Lončar
Kristina Lončar - 11.07.2023 13:10

Too bad WebSecurityConfigurerAdapter is deprecated...

Ответить
Shivang Mishra
Shivang Mishra - 23.06.2023 14:30

One doubt, in JwtRequestFilter, in 42nd line we are checking if(username!=null && SecurityContextHolder.getContext().getAuthentication() == null) only then we are validating the token. But for the first time when the user will log in, SecurityContextHolder.getContext().setAuthentication() will be invoked and the user details will be put in SecurityContextHolder. So upon every subsequent request, the if condition will fail as SecurityContextHolder.getContext().getAuthentication() != null. Then how is the token validated?

Ответить
BengoliInBangalore
BengoliInBangalore - 19.06.2023 16:08

Hi, i am a fan of your teaching. However, i see couple of things you are using are right now depracated and cannot be used like WebSecurityConfigurerAdapter. Such class dont exist in spring boot 3. Can you please create a new playlist with new implementations

Ответить
Rohith Krishna Pittala
Rohith Krishna Pittala - 23.05.2023 12:19

can I get the source code for this

Ответить
Niti KT
Niti KT - 14.05.2023 22:34

Fantastic...

Ответить
Riza Dwi Andhika
Riza Dwi Andhika - 28.04.2023 04:23

JwtFilter can cause the authentication fails such as when token is expired or when the user is not found. How can i send back response based on the failure cause?

Ответить
ADEPU NITHISH
ADEPU NITHISH - 07.04.2023 11:02

can I have a diagram flow for this understanding more easy.

Ответить
Rising
Rising - 29.03.2023 15:39

Thank you so much for this awesome tutorial.🙂

Ответить
Adéyèmi Achamou
Adéyèmi Achamou - 24.03.2023 13:25

Whaooo. This is very helpful. Thank you Sir !! Very well explained !

Ответить
ToneGrail
ToneGrail - 15.03.2023 15:44

Can you expand upon this example and implement refresh tokens?

Ответить
RLakhan
RLakhan - 14.03.2023 16:32

Thank you, Its Awesome.

Can you please help us with Bearer? What significant of Bearer in JWT token.

Ответить
paramvir vir
paramvir vir - 04.03.2023 10:36

Can you please update the tutorial with with new version of spring boot security. AuthenticationManager bean has been updated.

Ответить
anime ghost
anime ghost - 24.02.2023 12:08

please can we get a git repo for this project

Ответить