Building Controllers for Access & Refresh tokens | Testing APIs with Authentication & Authorization

  Рет қаралды 2,918

Sudarshan Shah

Sudarshan Shah

Күн бұрын

Пікірлер: 43
@ajaykotiyal427
@ajaykotiyal427 3 ай бұрын
Very complicated, but well explained. thanks for sharing.
@codewithsudarshan
@codewithsudarshan 11 күн бұрын
Go through multiple times, try to implement yourself, build more projects, with more practise you wil get the idea of it.
@AvijeetShil-cs8sm
@AvijeetShil-cs8sm 10 ай бұрын
Thank you so much brother. your tutorials are very helpful though I built Auth API gateway for my employer. These videos are fresher for me and I learned a lot from your tutorials. These gave me confident to do a little tweak and adjust things like my demand. Though I did optimize the codebase here and there, but the foundation is your tutorials.
@codewithsudarshan
@codewithsudarshan 10 ай бұрын
Thanks a lot! I am glad you liked the series. The goal of the Backend series is to give a strong foundation to people, so that any type of backend project in Java they can make on their own.
@patryklewandowski3456
@patryklewandowski3456 11 ай бұрын
Great explanation, thanks!
@codewithsudarshan
@codewithsudarshan 11 ай бұрын
Thanks a lot!
@vius4129
@vius4129 11 ай бұрын
I just came across this playlist. I found it seems like a good playlist to start making a project in spring boot.But can you add videos for testing the same application whatever you have covered till. This will help as an end to end understanding. Everyone starts making projects but no one covers testing for that application. Please you should do that.
@ibrahim-ry6sn
@ibrahim-ry6sn Жыл бұрын
Thanks again ❤❤
@obertmudzingwa270
@obertmudzingwa270 10 ай бұрын
Thanks for the insightful demos. Are you able to make just a demo project to show how to Spring Boot Security Jwt Login and Logout with or without Redis for token invalidation (blacklist)
@codewithsudarshan
@codewithsudarshan 10 ай бұрын
Those topics not on current list in the plan. But token invalidation is there at server-side, but for logout, it needs to be taken care at frontend side too!
@ibrahim-ry6sn
@ibrahim-ry6sn Жыл бұрын
Thanks ❤❤❤
@sujitkumar2196
@sujitkumar2196 11 ай бұрын
Awesome bro thanks you making such kind of video. If you don't mind can you please share a source code with us?
@codewithsudarshan
@codewithsudarshan 11 ай бұрын
Here is the link for source code: github.com/SudarshanShahCode/movieAPI-backend-YT
@raj006
@raj006 9 ай бұрын
Why we are not using @Autowired when we are declaring service objects in controllers? Please answer sir
@codewithsudarshan
@codewithsudarshan 9 ай бұрын
Constructor injection is preferred over field injection, as part of best practises. One big reason is that, when we declare field as final and do constructor injection, there is no chance that fields will be NULL, which avoids NullPointerException. Also, @Autowired offers flexibilty of dependecy to inject at runtime, but this also may lead to runtime issues. The way it is done in the videos, will avoid any chance of fields not being declared, which is very useful. In enterpise applications and in code reviews, contructor injection is preferred over using @Autowired annotation.
@raj006
@raj006 9 ай бұрын
@@codewithsudarshan thanks for the knowledge sir.
@raj006
@raj006 9 ай бұрын
Hi can someone tell me what is the name of playlist which this video is part of?
@codewithsudarshan
@codewithsudarshan 9 ай бұрын
The video is part of Backend series playlist, below is the link. Hope you like the video! kzbin.info/aero/PLdSSipYLKxHqzCIK5quzIAVdyB497JFtj&si=h3O_v7Om7dRmVYOg
@ruban3461
@ruban3461 6 ай бұрын
Its working for /register path...but forbidden for /login...why so??😢
@codewithsudarshan
@codewithsudarshan 5 ай бұрын
Please check Security Configuration file, make sure you have excluded the login path too from Spring security.
@prasanthsanjeevi2563
@prasanthsanjeevi2563 10 ай бұрын
Hi great explanation brother, Are you going to give any training in real time project
@codewithsudarshan
@codewithsudarshan 10 ай бұрын
I am glad that you liked the video! The Backend series cover till now will give you enough knowledge to build any project that you want to. My purpose for bringing this series was to make everyone understand the core concepts required for building Backend using Java & Spring Boot.
@prasanthsanjeevi2563
@prasanthsanjeevi2563 10 ай бұрын
Please reply brother any chance?
@prasanthsanjeevi2563
@prasanthsanjeevi2563 10 ай бұрын
Ya bro so much, paid content also doesn't gave this much knowledge.. Bro what's your next series? Please reply
@itsranim879
@itsranim879 11 ай бұрын
Please complete the frontend (reactJs) of this application and thank u 🥺❤
@codewithsudarshan
@codewithsudarshan 11 ай бұрын
Yes, there will be a frontend for it. I will require some time, but surely it will come.
@sagarboyal5981
@sagarboyal5981 9 ай бұрын
Hi sudarshan bhaiya I'm getting 401 Unauthorised in api/v1/auth/register what should I do I will check many times but I don't understand where I can fix it 😢
@codewithsudarshan
@codewithsudarshan 8 ай бұрын
Please check your SecurityConfiguration.java file, in that you need to include the register endpoint in the list of urls that are to be accessed without any authentication. I hope it helps!
@sagarboyal5981
@sagarboyal5981 8 ай бұрын
@@codewithsudarshan Thank you bhaiya I'm forget to add @bean annotation 😓🤦🏻 now it worked ❤️‍🩹
@PradhunyaShendge
@PradhunyaShendge 5 ай бұрын
we can do this in sts also ?
@codewithsudarshan
@codewithsudarshan 5 ай бұрын
yes, sure.
@tryitfirst3802
@tryitfirst3802 11 ай бұрын
When will you upload next video? OTP and Email Verification too...
@codewithsudarshan
@codewithsudarshan 11 ай бұрын
For OTP and Email verification, need some time.
@niteshkumar5853
@niteshkumar5853 6 ай бұрын
I am getting forbidden in postman what to do
@codewithsudarshan
@codewithsudarshan 6 ай бұрын
Please check SecurityConfiguration file. You need to exclude some paths for being able to access directly the Auth-related API. I hope that would solve your issue.
@sirineweslati-g9k
@sirineweslati-g9k 6 ай бұрын
@@codewithsudarshan How I can do it please
@evaslangat3037
@evaslangat3037 3 ай бұрын
github link?
@vikashkatiyar1225
@vikashkatiyar1225 11 ай бұрын
Hello bro , why you stop uploading video ?
@codewithsudarshan
@codewithsudarshan 11 ай бұрын
For backend series, the fundamentals of building the backend is completed. Lot many things are there in backend, but I started this series for explaining the fundamental part. More video on backend series will come, but need some time.
@sirineweslati-g9k
@sirineweslati-g9k 6 ай бұрын
I am getting forbidden in postman what to do
@codewithsudarshan
@codewithsudarshan 6 ай бұрын
Please make changes in Security Configuration file, as some paths need to excluded from Spring security checks.
@sirineweslati-g9k
@sirineweslati-g9k 6 ай бұрын
@@codewithsudarshan thanks ❤❤ good job it was very helpful
Forgot/Reset Password | Email verification with OTP | Spring Mail
54:27
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 121 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
MASTER JWT Authentication with Java Spring Boot 3
57:51
Wazoo Web Bytes
Рет қаралды 14 М.
Spring boot 3.0 - Secure your API with JWT Token [2023]
2:01:46
Bouali Ali
Рет қаралды 162 М.
Implementing JWT Authentication in ASP.NET Core
23:51
Nick Chapsas
Рет қаралды 48 М.
Exception Handling in Spring Boot REST API Explained With Demonstration
28:05