No video

JWT Authentication & Authorization with Spring Security | Step-by-step tutorial

  Рет қаралды 15,234

Genuine Coder

Genuine Coder

Күн бұрын

Пікірлер: 66
@GenuineCoder
@GenuineCoder 3 ай бұрын
Comprehensive Spring Security Tutorial: kzfaq.info/get/bejne/b7BdlZmA0bbdYmg.html
@machilikanthyadav460
@machilikanthyadav460 23 күн бұрын
i want to use the Spring Cloud Gateway. With this, how can i use it? Please tell me @GenuineCoder
@GenuineCoder
@GenuineCoder 23 күн бұрын
@@machilikanthyadav460 You can run Spring Cloud Gateway as another service and then link to this JWT service. I have explained this in the following tutorial & chapter kzfaq.info/get/bejne/g9iDeKaVuK_Ff5s.html&si=H6Fjo_CHn0PsU7xH
@machilikanthyadav460
@machilikanthyadav460 13 күн бұрын
@@GenuineCoder TQ
@TheHarshet
@TheHarshet 4 күн бұрын
Just Clapped for you after watching the video, Just at to the point explanations👏👏👏
@shubhammguptaa
@shubhammguptaa Ай бұрын
This is the best tutorial on spring security (including the previous video). Explain of everything why a particular line is written. Brilliant!! Thank you so much Sir 🙏
@user-vn2lc4sh9y
@user-vn2lc4sh9y 6 күн бұрын
Great Teacher!
@MichaelsSoftwareTestingA-wu3xp
@MichaelsSoftwareTestingA-wu3xp 2 ай бұрын
Thank you for this tutorial. I like that you are not just showing the code, but also explain it.
@rajbabu_mrb
@rajbabu_mrb 11 күн бұрын
This is brilliant tutorial for spring security and jwt integration, Thankyou
@rutikchakane4507
@rutikchakane4507 Күн бұрын
thanx brother love you❣
@avinashchaurasiya762
@avinashchaurasiya762 Ай бұрын
Crisp and Clear.
@seman71
@seman71 Ай бұрын
بارك الله فيك ارجوا ان تستمر في هذا الابداع وعمل سلسله للتعليم اخى العزيز May God bless you. I hope you continue this creativity and create a series for education, my dear brother
@mohamadmj6158
@mohamadmj6158 2 ай бұрын
Well explained, it's complete and clear demonstration of how to use spring security
@cozitsyash1301
@cozitsyash1301 3 ай бұрын
Thank you Sir ... Please bring more Spring boot tutorials and its important and advanced concepts Great Learning
@SaqibWani-p2i
@SaqibWani-p2i 2 ай бұрын
Thank you for your precious time and effort.
@weitanglau162
@weitanglau162 26 күн бұрын
your videos are amazing! please keep up the good work!
@scottanderson6762
@scottanderson6762 2 ай бұрын
You're incredibly smart and helpful. Thank you so much!
@2RAJ21
@2RAJ21 13 күн бұрын
Thank you. clearful explanation.
@thushanchathuranga6694
@thushanchathuranga6694 2 ай бұрын
Thank you for this wonderful tutorial. I really enjoyed the way you explained the code. Can you add and extend this Spring security series with refreshing tokens, OAuth and practical advantages & disadvantages of using JWT. Can you make a tutorial for OpenID and Keycloak.
@user-ty3il9wy1j
@user-ty3il9wy1j Ай бұрын
Thank you for all you've done. That is helpful.
@thisgnop3177
@thisgnop3177 2 ай бұрын
You're a lifesaver, brother. Find your taste and drink a cup. It's on me :)
@kj4saeko333
@kj4saeko333 2 ай бұрын
Thank you for the video, great explanation. Keep it up !
@nahomdiro7818
@nahomdiro7818 Ай бұрын
clear and on point.
@Premkumar-es4bx
@Premkumar-es4bx 3 ай бұрын
Hi bro,the way you are explaining and writing code is really awesome,keep rocking Can you plz post video for interceptor concept in java spring boot
@sinhvienit-o7f
@sinhvienit-o7f 2 ай бұрын
Thank you for this tutorial , video is so very good
@saigovardhanveggalam6511
@saigovardhanveggalam6511 3 ай бұрын
Thank you very much been looking for this !
@pierrelebon6627
@pierrelebon6627 3 ай бұрын
Great explanation, thank you
@lovelypets966
@lovelypets966 Ай бұрын
thank you. good tutorial
@hizbusoftware7683
@hizbusoftware7683 3 күн бұрын
i built an registration and login system using ReactJS by utilizing your previous spring security tutorial and this one together. i'm just stuck in one part where after user logs in to the system i want to display username, and the user role(User or Admin) but it is undefined in the UI. could you please suggest me some tips to overcome this error?
@liqwis9598
@liqwis9598 Ай бұрын
Nice explanation , if possible Can you also please teach us SSO or AUTH2 or MFA like this SIR
@ganeshenamala8317
@ganeshenamala8317 3 ай бұрын
Waiting for this video, thank you bro 🙏
@ankeshwarapujokesh5430
@ankeshwarapujokesh5430 Ай бұрын
java.lang.NoSuchMethodError: 'boolean org.springframework.security.authentication.AuthenticationTrustResolver.isAuthenticated(org.springframework.security.core.Authentication)' i got this error please give solution for this
@VickyKumar-xo6mp
@VickyKumar-xo6mp Ай бұрын
Sir thank u for this video. Can you take one class of spring project how to debugging our and execution flow of project.
@AshwaniKumarTrading
@AshwaniKumarTrading 3 ай бұрын
Thanks for the video 🎉
@liqwis9598
@liqwis9598 17 күн бұрын
Hello @Afsal , while working the code i think i found a bud in the code, we are able to call the api , by two auth mechanism 1 - Bearer token which you explained , but we are also able to login by 2 - Basic Auth and access the admin or user api , do let us know is this expected behavior Thank you .
@tekapurnadeem8240
@tekapurnadeem8240 Күн бұрын
jwts.SIG option is not showing
@elforeyyy
@elforeyyy 21 күн бұрын
hello friends may you please assist me in my application used springboot security problem is after a successful login it's calling the login page again not redirecting to the specified endpoint. How can I share my classes with you. Thank you sir for the favor you explain so well
@user-gl7js3kz3x
@user-gl7js3kz3x Ай бұрын
Thanks sir
@jrdillip
@jrdillip Ай бұрын
Sir one question here, so every time we actually pass the token as part of the request header. And it goes inside doFilterChain() method but why it is hitting the database every time to get the user details. It hits the loadUserByUsername() and the request goes to the database. Is it the expected scenario that every time it is hitting the database with every request. Please help me I have been struggling to understand this for a long time.
@gnsc
@gnsc 28 күн бұрын
Nive video
@pankajthakur9760
@pankajthakur9760 2 ай бұрын
Great well explained . well how we connect the api's with HTML pages ?
@RN-jo8zt
@RN-jo8zt 2 ай бұрын
i think it's Symmetric Cryptography my knowledge: A single secret key is used for both creating and validating the token. Both the issuer and the verifier need to have access to this key. my question how verifier will get this secret key? like i will send him personally or it will store in cloud .so he/she can access it , or i will send in mail,teams....
@ScoobyDoo-ct9nd
@ScoobyDoo-ct9nd Ай бұрын
is it OATH2 or OIDC?
@hamidmohammadi8570
@hamidmohammadi8570 Ай бұрын
Assuming backend just accept request that contain token. How can handle returned token from backend to use in all request of frontend(javaFX) that send to backend? My problem is handling token in frontend.
@GenuineCoder
@GenuineCoder Ай бұрын
You can pass the JWT with every request with "Authorization" header. First, do the login and get JWT. Then for all subsequent requests, pass the obtained JWT via the request headers.
@chaitanyagupta6668
@chaitanyagupta6668 2 ай бұрын
[QUESTION] Why is the jwt auth filter to be brought before usernamepasswordauthentication filter? I still didn't get. Some kind soul please help me out on this?
@GenuineCoder
@GenuineCoder 2 ай бұрын
50:48 UsernamePasswordAuthenticationFilter is actually for form-based login (This one kzfaq.info/get/bejne/b7BdlZmA0bbdYmg.htmlsi=_HI2Z6AbMDh2-SgL&t=282) and is provided automatically by the Spring boot. The UsernamePasswordAuthenticationFilter and JwtAuthenticationFilter both handle authentication but in different ways. To function correctly, the JwtAuthenticationFilter should be called first. The JwtAuthenticationFilter intercepts the request, checks for the presence of a JWT token, validates it, and sets up the security context. If the token is valid, the request proceeds with the authenticated context. If the token is not valid or absent, the request will then be processed by the default authentication mechanisms, such as the UsernamePasswordAuthenticationFilter. When the UsernamePasswordAuthenticationFilter is called before the JwtAuthenticationFilter, any request that doesn't have the proper username and password will be immediately rejected with an unauthorized status without giving the JwtAuthenticationFilter a chance to authenticate the user based on a JWT token. Therefore, the JwtAuthenticationFilter must be called before the UsernamePasswordAuthenticationFilter.
@ajithkrkd2562
@ajithkrkd2562 2 ай бұрын
AOP video cheyyuo
@zoomer619
@zoomer619 2 ай бұрын
sir I need a little help regarding your Library management project. Im trying to get done with a small presentation and Ive seen your project. When I use it, it shows a 'help' box linkin to your youtube channel. I want it to hide for the time being. Can you help me with it, with your github. You can direct me what can I do to remove it from your repo that I would download.
@GenuineCoder
@GenuineCoder 2 ай бұрын
You can remove links to my channel and LinkedIn profiles from the about page FXML file github.com/afsalashyana/Library-Assistant/blob/master/src/library/assistant/ui/about/about.fxml
@suraj17_17
@suraj17_17 Ай бұрын
Sir which version u r using
@GenuineCoder
@GenuineCoder Ай бұрын
I have used the Spring Boot v3.3.0. As of today, the latest version of spring boot available.
@calmyour
@calmyour 3 ай бұрын
hi there how to connect post man with our application ?
@GenuineCoder
@GenuineCoder 3 ай бұрын
Hi, there is no special connection required from the postman. Postman can automatically send requests to the app via ip:port address. You just have to make sure that the app is started and the localhost:8080 is loading on the browser. If the browser is loading in that address, then the postman can connect to it too.
@BlaiseTAYOU
@BlaiseTAYOU 2 ай бұрын
@liabasqulizad7962
@liabasqulizad7962 Ай бұрын
Thank you sir
English or Spanish 🤣
00:16
GL Show
Рет қаралды 7 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 27 МЛН
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
Spring Security: Spring Security + REST + JWT
1:52:13
Александр Фисунов
Рет қаралды 45 М.
Complete Spring Security with JWT Authentication | Spring Security 6 | Securing Spring Boot
3:45:03
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,1 МЛН
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 7 МЛН