Spring Boot 3 + Spring Security 6 + JWT From Scratch | Lazy Programmer

  Рет қаралды 1,303

Lazy Programmer

Lazy Programmer

Күн бұрын

Пікірлер: 17
@nikantchaudhary
@nikantchaudhary 2 ай бұрын
loved your video. Please start a series for improving performance of java applications like identifying memory leaks, profiling etc.
@LazzyProgrammer
@LazzyProgrammer 2 ай бұрын
Thank you for your feedback, Sure I can take a look into such series after completing Spring Security. In the mean time if you want you can check out few videos where such issues are discussed. Links are give below: Memory Leaks: kzbin.info/www/bejne/Z5zWe6OdoJZ7f8U Working of Heap Memory: kzbin.info/www/bejne/fnrXgICsbpeAfKM and few Garbage Collection related videos also.
@mesmerizeart663
@mesmerizeart663 2 ай бұрын
Brother Your Scratch level Explanation on Core and Advance Java is NextLevel 🔥🔥🔥🔥Whatever you explain in between ~15 Minuit video is More than 3 day's classroom tutor .Thank's Brother for your Work God Bless You.
@LazzyProgrammer
@LazzyProgrammer 2 ай бұрын
Thank you so much :). I am glad that these things are helping. Let us keep learning together :)
@sanduniiresha9842
@sanduniiresha9842 2 ай бұрын
Your content was absolutely on point! You explained everything in such an easy-to-understand way.
@LazzyProgrammer
@LazzyProgrammer Ай бұрын
Thank you, I am glad it was helpful!
@playerunknownbattlegraound
@playerunknownbattlegraound Ай бұрын
Easy to understand I get all things in single video Greate👍🏻
@LazzyProgrammer
@LazzyProgrammer Ай бұрын
Thank you for your feedback. Keep Learning :)
@mohamadalhamid287
@mohamadalhamid287 20 күн бұрын
thanks for a beauifull lesson, but the lesson sequence is not correct, it should be at the beginning.
@LazzyProgrammer
@LazzyProgrammer 20 күн бұрын
I am glad that it was helpful, as far as sequence is concerned, I first try to cover the concept theoretically and then move to implementation hence the sequence. Thank you for your feedback 🙂
@victoronwuhafua8464
@victoronwuhafua8464 2 ай бұрын
Hello LazyProgrammer thanks for you video, 1 question what is the function of the JwtAuthenticationFilter?? in your implementation, because you added/instantiate the class in the securityFilterChain method as a filter .addFilter(new JwtAuthenticationFilter(authenticationManager(httpSecurity.getSharedObject(AuthenticationConfiguration.class)), jwtUtil)) however there is no use case (at least that i was able to find) that actually makes use of the implementation 1 for login you created a controller and service that gets the userdetails using userdetailservice bean and then creates a jwt using jwtutil class 2 for secure routes the generated token is used in the JwtAuthorizationFilter class to validate the user 3 for register no authentication is applied
@LazzyProgrammer
@LazzyProgrammer 2 ай бұрын
AuthenticationFilter will be used in the scenario for our next video where we'll get rid of AuthController itself.
@LazzyProgrammer
@LazzyProgrammer 2 ай бұрын
To generate JWT tokens without a REST endpoint? kzbin.info/www/bejne/h2qZm6Jpirt_pbc You can checkout the usage of JwtAuthenticationFilter in this.
@chetanp4588
@chetanp4588 2 ай бұрын
Why using deprecated methods instead of latest 0.12.6v of jjwt ... If possible can you help me to get the latest Jwt Authorization token... I tried but can't access preAuthorize API has Role ADMIN....
@LazzyProgrammer
@LazzyProgrammer 2 ай бұрын
Sure Chetan, I am already planning to upgrade it and get rid of deprecated JWT methods in next video where I will implement RBAC
@chetanp4588
@chetanp4588 2 ай бұрын
@@LazzyProgrammer Thanks a lot for ur response....I tried it on all aspects of accessing RBAC, In DB role name is saved as ROLE_ADMIN ROLE_USER Also at SecurityConfig Giving @EnableMethodSecurity(prePostEnabled = true) For @preAuthorize("hasRole('ADMIN')") @DeleteMapping Admin role Jwt Authorization token can't access the above API... help me...
@LazzyProgrammer
@LazzyProgrammer 2 ай бұрын
Hi Chetan, You can check the video below as I have covered the same problem in my recent video. RBAC JWT + SpringBoot 3 + Upgrade JWT + Fix Deprecated Method Usage: kzbin.info/www/bejne/nZerpH6JiZ2bjtU
Role Based Access Control Spring Security | Spring Boot | Java
12:06
Lazy Programmer
Рет қаралды 1,3 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 189 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 22 МЛН
Spring Security - Refresh token
26:20
Bouali Ali
Рет қаралды 35 М.
Basic Authentication Spring Security | Spring Boot | Java
13:08
Lazy Programmer
Рет қаралды 1,6 М.
Spring Security 6 +  | JWT  | Spring Boot 3.3 | KeyCloak
32:49
Spring Security 6 with Spring Boot and JWT Tutorial
3:14:14
Telusko
Рет қаралды 135 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 189 МЛН