Spring Boot + Spring Security + OAuth2 + JWT from scratch
HTML-код
- Опубликовано: 29 сен 2024
- In this video you will learn to implement the OAuth2, JWT, Spring Security from scratch.
Note: Please referred the pinned comment of mine in comment section to get rid of the yellow cross marks(deprecated) issue.
►Checkout my website: www.pixeltrice...
►Click here to subscribe : / @pixeltrice
If my videos have helped you in any way do support PixelTrice to make more content.
For Donation
Patreon: / pixeltrice
About Me:
Hey Guys, I'm Software Engineer by Profession expertise in Java!!!
I make free programming tutorials from beginner to advanced level.
That includes Java for beginner, Advanced Java and many more.
And i use to explain in a very simple words, even if you are from other background and trying to switch in IT Industry, then you at right place.I give a Real World Example, so that you can easily understand any concept in depth.
Sometimes I make videos on motivation.
There is something for everyone here.
goooooooooooooooooooooooooooood goooooooooooooooooooooooooood
In video at 41:27 duration, I have implemented the OAuth 2.0 Server, But if you watched or going to watch, you will notice that Methods and Classes used in OAuth 2.0 have been deprecated(Yellow- Cross -Marked). This is because Spring Security no longer supporting the Authorization Server (with OAuth 2.0 implementation).
In order to remove the yellow marked line, just replace the OAuth 2.0 dependency version from 2.5.0.RELEASE to 2.3.3.RELEASE in pom.xml
Same has been updated in the source code hosted on git. Please refer for better understanding.
Please if you know any other approach , do share with us. Thanks.
even the jdbc template method has been deprecated
could you post another video for Oauth2+jwt (without deprecated function) using Google signin.
I m extremely sorry For u Sir, Lekin Acche logoki Kadar nahi Kisiko. Aaapke Jaise Kisi orne Explain he n kiya Sir, Thank u Soooo much For Ur Great Contribution.
Thanks Anwar
Hello i have go to implement outh not outh 2.0 so are both same ?
Where is this post in your web page?
sir please provide me the git link
Any one has this code
The video do not have the explanation for how is it doing the authorization? How the token is used to do the authorization. How it is actually comparing the value that we are setting in db. All that.
Great tutorial but should have explained in real time like how Authorization working internally
Hi Giri, I already explained in another video about how the authorization works internally. Video Link:- ruclips.net/video/6072IdEMYnc/видео.html
como lo inegro con angular
how we can logout ?
Thank you, would you support the Github repo?
very detailed explanation . Please keep doing it . Thanks once again.
Acabo de implementar este ejercicio como práctica y realmente funciona! Muchas gracias por la explicación también. Seguiré viendo otros videos.
She is from Spanish , translation here : I just implemented this exercise as practice and it really works! Thank you very much for the explanation as well. I will continue to watch other videos
can we use mysql database instead of h2database and i"m using spring boot 3.2 .2 verson and new version of 0Auth2 what should be the changes in code . please tell
In this video you have not made any packages for controller So, how can controller will be get identified.
🤔🙄
Video not playing from 4 minutes. Please check
Hi Suresh, Thank you for info, please try to refresh and run it again , I cross checked on youtube app and web browsers , it is working perfectly. If you still face the same issue, then please update your youtube application.
{
"error": "invalid_token",
"error_description": "Cannot convert access token to JSON"
}
anyone can provide solution? Thanks in advance
Recently, I came across this channel on RUclips while searching for OAuth videos. The content in this channel is incredibly valuable. It's surprising that it hasn't garnered at least 20k subscribers yet; it's truly underrated. I hope to see more viewership and subscriptions for this channel in the future. However, I noticed that the content seems to have stopped, with the last video posted a year ago. I would like to request the admin to upload more videos like this. It would be particularly helpful to learn how Spring Boot applications can be deployed in AWS, GCP, or Azure.
Hi sir
How to generate refresh token using same logic.can you please make a video for the same
Hi, thank you very much for your video. I am working on something and I found, while following your video, that the annotations @EnableResourceServer and @EnableAuthorizationServer have been deprecated. I read on from some search that as at May, 2020, the Spring team had responded to developers' protests to re-include both annotations into Spring security (they had said to not continue with it in Spring earlier). In the meantime, what are the alternatives, if any, for these deprecated annnocations?
I am also facing this issue
Please post here if you found any idea
Hi Tolulope, please refer the pinned comment on the top of this video, deprecated issue will be solved.
@@kousikup23 Hi Kousik, please refer the pinned comment of mine, just I have updated and you can also check same changes from git. I hope deprecated issue will be resolved.
Thanks a lot , amazing explanation . Please keep doing it . Thanks once again.
The best tutorial i have ever followed explaining oauth nightmare so clearly. 1 hour looked like 10mins. Awesome!
@enableaothorizationserver and @enableresourceserver both are dpereceted, any solution?
Awesome.. your channel should gain many subscribers
How can I generate access-token using this refresh token,which endpoint I have to hit here and what header/params I have to use to generate access token with refresh token
greate tutorial thanks, anyway how can i do refresh token and remoke token using this spring security and oauth2 ?
Thank you for this. its really very helpful and i am able to work on this. 👏👏
You're welcome 😊
It is showing invalid signature..not working
is this applicable for micro services
Thanks for the video sir
Most Welcome Mani
The best tutorial on Spring Security. Keep making such wonderful videos.👍
All the methods are deprecated
Hi. trying the last few minutes of the video, I ran into an error...
Invalid token error but had it fixed. However, on the jwt.io debugger, it says the token signature has invalid signature. Why is this the case? and how to resolve it?
awesome content 👏🙇♀️
nice and excellent 🙏
Hello, thank you for the helpful video. I have an important question, how we can logout? how we can revoke jwtToken?
Did you found out how to logout?
Nice video
This tutorial is very nice but can you explain how this jwt token authorization is done?
Noted Sheeja, Will explain soon in detailed in very simple approach.
This is what i was looking for Thankfully! you made my day.
welcome. Thanks
Appreciate your work
Thanks Deepak
Superb explanation sir...
Thanks sagar.
Really awesome stuff.. thank you so much.
I have dropped you a mail at admin id. If you reply, it will be so helpful
Thanks
Welcome
This is a nice tutorial. Thank you for this.
Can you also help on how to handle the Basic Auth programmatically to generate the access token instead of using postman. Thanks in anticipation.
Sorry Odunayo, I didn't get you. Actually token is generated programmatically only, I am using POSTMAN just as Client or Frontend request.
This tutorial is very helpful , every method and annotations are explained in details are really appreciatable. As of now i'm using spring boot 2.4.1 some of the classes and interfaces are deprecated if you provide the solution (i.e) alternate is very much useful. Thanks once again for your great work.
Hi Rajesh, did you find any solution to handle deprecated classes and interfaces?? You can try by replacing the OAuth 2.0 dependency with OAuth 2.0 auto-configuration dependency, I have shared the link on top most comment of this video.
OMG . Thank you very much
Hi, Are you planning to release tutorial for Springboot Webflux Oauth2 integration?
Just got a chance to see your video, really superb. Only worry is for past few months no videos been uploaded in your channel. Expecting lot from yours vision. Thanks again for the good video sir.