JWT AUTHENTICATION In ASP NET Core with Azure AD | Getting Started With ASP.NET Core Series

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • Hey Friends, I am back with the much asked about video on Authentication. It did take some time to put together and I hope you find it helpful.
    When building applications we often want to control access to it. The process of securing your application is commonly referred to as authentication and authorization.
    In this video, let's learn how to protect your ASP NET Core Web API using JWT Bearer Token. We will be using Azure Active Directory as our identity provider and see how to integrate with it from our application and how everything works together.
    🔗 Blog Post www.rahulpnath...
    🔗Source Code - rahulpnath.vis...
    🔗Protected Web API - docs.microsoft...
    🔗 Microsoft Identity Platform - docs.microsoft...
    🔗Token Flows - docs.microsoft...
    🔗Implicit Flow - docs.microsoft...
    🔗Postman - www.postman.com/
    🔗Fiddler -www.telerik.co...
    Additional Watching
    📹STARTUP CLASS - • THE STARTUP CLASS In A...
    📹MIDDLEWARE - • MIDDLEWARE in ASP.NET ...
    📹ASP NET Core Series - • ASP.NET Core
    Come say hi! ✋
    🌍 Blog - rahulpnath.com/
    ✉ Subscribe to my Newsletter - www.rahulpnath...
    🐦Twitter - / rahulpnath
    📸Instagram - / rahulpnath
    🎥 Recording Setup and Workflow - www.rahulpnath...
    Video Edited by my wife, Parvathy 😍
    Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!

ความคิดเห็น • 344

  • @RahulNath
    @RahulNath  3 ปีที่แล้ว +17

    Hope you all enjoy this video Here is the source code I used rahulpnath.visualstudio.com/DefaultCollection/TH-cam%20Samples/_git/jwt-authentication
    Do drop in your comments!

    • @UPSCCSE-ku7ej
      @UPSCCSE-ku7ej 3 ปีที่แล้ว

      U are awesome buddy ....I am also a Dot net full stack developer.
      Your video great 🙂👍

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you heaps! Glad you like it 😀

    • @mdabuzar2130
      @mdabuzar2130 3 ปีที่แล้ว +2

      We are waiting for next video on Authorization and explicit flow.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@mdabuzar2130 Thank you. Sure will do one.

    • @hotasfireph
      @hotasfireph 2 ปีที่แล้ว

      Nice tutorial, but why do I'm having an invalid certificate? also if I used resource parameter, it's said it's not supported.

  • @sojans.r9025
    @sojans.r9025 2 ปีที่แล้ว +4

    I like the fact that there is no filler in this video. To the point and precise. Subbed !

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you Sojan! Do check out the full series, I'm sure you will like it bit.ly/asp-net-core-series

  • @vikasgarg2035
    @vikasgarg2035 หลายเดือนก่อน

    Extremely good explanation of Authentication and Authorization. Also provides extra information about new tools.

  • @SahanSerasinghe
    @SahanSerasinghe 3 ปีที่แล้ว +4

    Thank you for taking the time to explain this! Really loved the bits you dived into to show what requests are being made under the hood.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +3

      Great! Thank you Sahan. Yes, I have always felt that mysterious and never explained anywhere explicitly, which was particularly why dived in to understand a bit of the internals. Glad you particularly called that out. Made that effort paid 😀

  • @jalanubha
    @jalanubha 3 ปีที่แล้ว +1

    One of the best tutorials on TH-cam! Thanks Rahul :)

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Most welcome Bhanu. Do check out the full series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @tourism8016
    @tourism8016 3 ปีที่แล้ว +1

    Rahul,
    Very good video on B2C. Great explanation of the relevant topics. Precise and concise.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you liked it

  • @MG4Youtube
    @MG4Youtube ปีที่แล้ว

    This is an excellent tutorial to understand the Azure AD authentication system. Very clear.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Great to hear!!

  • @manishpandey4621
    @manishpandey4621 2 ปีที่แล้ว

    Hands down the best explanation on the JWT concept. Rahul - you rock!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Happy to hear Manish! 😀

  • @suraj_ingole0610
    @suraj_ingole0610 2 ปีที่แล้ว

    Perfect explanation with simple language. Easy to understand. Thanks for the information

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad it was helpful! Check out the full ASP Series here bit.ly/asp-net-core-series

  • @vinodsunagar7366
    @vinodsunagar7366 หลายเดือนก่อน

    Really good explanation of Authentication and authorisation concept❤

    • @RahulNath
      @RahulNath  หลายเดือนก่อน

      Glad you liked it Vinod! Hope you are liking the series bit.ly/asp-net-core-series

  • @onkarsinghsanuria5426
    @onkarsinghsanuria5426 3 ปีที่แล้ว +1

    Excellent video sir , i solved my issues in auth after watching your video .. thanks man 👍👍

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      That's awesome and happy to hear. I am sure you will like the other videos in my ASP NET Series. Do check them.

  • @sawarkarashish
    @sawarkarashish 3 ปีที่แล้ว +1

    Thanks for explaining it in the simple and best way... Keep making videos for Azure and.net core

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Ashish, happy you liked it and sure will make more! Do let know if you have particular topics to be covered.

  • @anjanchidige
    @anjanchidige 2 ปีที่แล้ว

    Rahul, Awesome. outstanding and confidence in explaining the concept and demonstrating it.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you like it Anjan. Do check the full ASP Series here bit.ly/asp-net-core-series

  • @somnathroy4875
    @somnathroy4875 3 ปีที่แล้ว +1

    Really loved the article. Waiting eagerly for the other flows as well..

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you for letting me know. Sure will add on the other flows soon! Meanwhile, you might like my other ASP Net Core videos th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @ananthganesh8754
    @ananthganesh8754 3 ปีที่แล้ว +2

    Very good tutorial Rahul. If you could kindly create a video with a front-end application for obtaining the token and then passing to WebAPI, it will be very useful.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you liked it Ananth. Sure will that's on my backlog list. Slowly catching up 😀

  • @moumantiok
    @moumantiok 2 ปีที่แล้ว

    It is really helpful..not only this explanation..all your videos are very helpful

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you Moumanti !

  • @camping29
    @camping29 ปีที่แล้ว

    Nice one!
    easy to understand but I love to see more diagrams for the explanation details. Also love to hear more about best practives for JWT auth based on your own experience @rahul

  • @NaveenKumar-mr6xi
    @NaveenKumar-mr6xi 3 ปีที่แล้ว

    i have read lot of things but this video clear alot

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      That's nice to know. Thank you Naveen. Do check out the full series here bit.ly/asp-net-core-series

  • @moneymatters.junction
    @moneymatters.junction 10 หลายเดือนก่อน

    Nice video. Cleared my doubts around authentication and authorization.

    • @RahulNath
      @RahulNath  10 หลายเดือนก่อน

      Glad to hear that - do check out the ASP Series bit.ly/asp-net-core-series

  • @anarheydarli6763
    @anarheydarli6763 3 ปีที่แล้ว +1

    Very well explained. Thank you, Rahul! Moreover, the instructor has an intonation that makes me listen/watch carefully.
    First time I haven't got distracted and watched till the end at once :)

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Glad you enjoyed it Anar! Do check out other videos in this series here bit.ly/asp-net-core-series
      I am sure you will like them too!

  • @TellaTrix
    @TellaTrix 3 ปีที่แล้ว +1

    Wow it's very unique content over the TH-cam.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you and happy you like it.

  • @pradumangite795
    @pradumangite795 3 ปีที่แล้ว

    Amazing video. This is one of the best videos for .net core around oauth and openid

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Super happy to hear that Praduman. Do check the other videos in this series here bit.ly/asp-net-core-series

  • @ManojKumar-mc5cd
    @ManojKumar-mc5cd 3 ปีที่แล้ว

    Here is your another subscriber; Really awesome explanation; Keep doing the good work;

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Welcome aboard Manoj! Do check out the full series bit.ly/asp-net-core-series. I am sure you will like it!

  • @keerthanarani9929
    @keerthanarani9929 2 ปีที่แล้ว +1

    Great video! Thank you for taking the time to explain the concepts.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you enjoyed it!

  • @raymondwilliams8054
    @raymondwilliams8054 3 ปีที่แล้ว

    Very detailed and great description, good work my friend.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you very much Raymond! Do check out the full ASP NET Series if you haven't already bit.ly/asp-net-core-series . Looking forward to see you around 😀

  • @jainithpatel7661
    @jainithpatel7661 3 ปีที่แล้ว

    Really Very helpful for understanding all concept related to JWT

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Jainith! You can check other videos like this in this playlist th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @yuvrajspanwar
    @yuvrajspanwar 3 ปีที่แล้ว

    This video is totally up to the mark and straight to the point. Great work Rahul. Thanks

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad to hear that Yuvraj! Hope you are enjoying the series bit.ly/asp-net-core-series

  • @betoborda
    @betoborda 3 ปีที่แล้ว

    Great video. I hope you do more videos about this topic

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Yes I have a few planned showing the various different auth flows

  • @kowshikkowshik6668
    @kowshikkowshik6668 3 หลายเดือนก่อน

    Sir, thank u so much for the clear explanation

    • @RahulNath
      @RahulNath  3 หลายเดือนก่อน

      Glad you found it useful Kowshik! Do check out the ASP Series for more bit.ly/asp-net-core-series

  • @joyjk.
    @joyjk. ปีที่แล้ว +1

    very nice video

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Thanks Joy. Do check out the full series bit.ly/asp-net-core-series

    • @joyjk.
      @joyjk. ปีที่แล้ว

      @@RahulNath Brother could you please help me to with windows server active directory?
      Thank you

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      @@joyjk. haven’t been doing anything with ad these days - what are you stuck with ?

    • @joyjk.
      @joyjk. ปีที่แล้ว

      @@RahulNath Brother, Can I mail you? Could you please give me your email? I replied several times but youtube deleted it.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      sure mail details in about page 👍hello@rahulpnath.com

  • @stasmashkovich88
    @stasmashkovich88 3 ปีที่แล้ว +1

    Hi Rahul, great video, do you have an example using Net core 2?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you like it, Stas. No, I don't have any on .net core 2. Any issue you are facing? The overall flow is similar in there too, except for the libraries used.
      Also, think .NET 2 is nearing its EOL dotnet.microsoft.com/platform/support/policy/dotnet-core

  • @mdabuzar2130
    @mdabuzar2130 3 ปีที่แล้ว +1

    Sir, please make some videos on how to implement Azure service with .net sdks. Like storage account, Azure functions and many more.
    By the way, you are one of the best teacher available on TH-cam.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Abuzar! So happy that these videos are helpful. I will add these to my list and will keep them coming.

  • @InfoDefensePlUS
    @InfoDefensePlUS ปีที่แล้ว

    Thank you for the post. Very well done video

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      Thank you! Here is the full ASP Series bit.ly/asp-net-core-series

  • @hemsingh81
    @hemsingh81 3 ปีที่แล้ว +1

    Great explanation,

    • @hemsingh81
      @hemsingh81 3 ปีที่แล้ว

      You always smiles two times one when start video while talking about subscribe and same in the end..
      😂

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@hemsingh81 Haha yeah I've noticed that too. The smile somehow disappears when I start talking code. I am otherwise cheerful. 😂

  • @ArranMaclean
    @ArranMaclean 2 ปีที่แล้ว +1

    Great video. Would like to see a Azure B2C version and the differences. Roles/claim in the JWT token, example Admin and User roles.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Great suggestion! thank you Arran

  • @nisansalanayanajith7710
    @nisansalanayanajith7710 2 ปีที่แล้ว

    Which is the best from AAD and OAuth ? .. Can you do a tutorial contrasting these two.

  • @sanjayramadugu8779
    @sanjayramadugu8779 2 ปีที่แล้ว +1

    Thank you for making this video. did you make a video on using authorization code flow as you mentioned in the video?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Unfortunately not Sanjay! That one is still pending 😀

  • @matheusgeorgo
    @matheusgeorgo 3 ปีที่แล้ว +2

    Great video, thank you very much for the explanation! Such a good concise video, amazing!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      You're very welcome Sllan!

  • @sudhiniv
    @sudhiniv 3 ปีที่แล้ว +1

    Excellent video sire! what is the multiline vscode extension that you were using?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Vikram. I use the built in VSCode feature code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor
      Is that what you are looking for?

  • @manishksohni
    @manishksohni 3 ปีที่แล้ว

    Excellent Video Rahul. Very good insight on JWT.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Manish. You might find the ASP NET Core Series helpful too - th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @HemantSoni-Tech
    @HemantSoni-Tech ปีที่แล้ว

    Hi Rahul This is gr8 understanding, Thanks., I need your help in way, like I have old application which used microsoft Identity for user management, Now My requirement is to upgrade application and bring to cloud using Azure. now I need to work on User management section using Azure AD B2B integrated, So how use existing usermanagement or completely need to create new. and What we have to do of existing Identity tables like aspnetusers,aspnetrole ectc. please suggest video where I can get help to inegrate end to end userlogin logout in webappilcation and authorization in webAPI as well I'm using .net 7.0.

  • @RajVadla
    @RajVadla 2 ปีที่แล้ว

    Hey, Can you please help with encrypting and decrypting the JWT? It doesn't seem to work in dotnet.

  • @dr.amneshgoel1416
    @dr.amneshgoel1416 3 ปีที่แล้ว

    This video deserves the move views and likes. Good job, Rahul!!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Amnesh. Such positive comments are encouraging!

    • @dr.amneshgoel1416
      @dr.amneshgoel1416 3 ปีที่แล้ว

      @@RahulNath I did a POC around DbUp as you suggested earlier on twitter. POC was awesome and everyone liked it. Looks like I'm becoming a fan of your videos. You are an Awesome Man.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      @@dr.amneshgoel1416 That's so good to hear and glad you liked DbUp. Do let me know if there are any particular areas you are looking for and I can try and cover them.

    • @dr.amneshgoel1416
      @dr.amneshgoel1416 3 ปีที่แล้ว +1

      @@RahulNath I'm good for now and thanks for checking. I had tweaked the scripts folder structure to make it more cleaner like DDL, DML etc., just to separate sql scripts in different folders.
      Overall I'm good there.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@dr.amneshgoel1416 Great!

  • @aliqureshi7171
    @aliqureshi7171 3 ปีที่แล้ว +1

    Can you plz consume the WebAPI into the Web Application and do the same as you have done using Postman tool

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Great suggestion Ali. Yes, I have a video planned on that side and showing the different libraries available and how that works. Still working on it. Thank you for watching this.

  • @robertmrobo8954
    @robertmrobo8954 2 ปีที่แล้ว

    Excellent video, really excellent.

  • @UmeshKumar-ox3zp
    @UmeshKumar-ox3zp 2 ปีที่แล้ว

    Very detailed explanation. Thank you

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad it was helpful Umesh! Do check out the full ASP NET Series bit.ly/asp-net-core-series

  • @dinhdotdev
    @dinhdotdev 2 ปีที่แล้ว

    Great video. Easy to understand and follow.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you enjoyed it! Do check out the full ASP Series here bit.ly/asp-net-core-series

  • @gauravparikh1205
    @gauravparikh1205 3 ปีที่แล้ว

    Rahul...you are simply Awesome

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Gaurav! Do check out the full series here bit.ly/asp-net-core-series

    • @gauravparikh1205
      @gauravparikh1205 3 ปีที่แล้ว +1

      @@RahulNath will go through it

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      @@gauravparikh1205 Let me know if you have suggestions and feedback!

    • @gauravparikh1205
      @gauravparikh1205 3 ปีที่แล้ว

      @@RahulNath Thanks Rahul I am running with one problem getting below error in Linux docker "Windows Cryptography Next Generation (CNG) is not supported on this platform" , what is the best mechanism for Cross platform cryptography. Specially I could encrypt in angular and decrypt in C# webapi and more important should run with Docker image in LINUX

  • @denji3397
    @denji3397 9 หลายเดือนก่อน

    How do i store the token that i get in my redirect Uri. Can i do that 💀. Im new to programing btw trainee

  • @kuttikrishnankodoth1463
    @kuttikrishnankodoth1463 3 ปีที่แล้ว

    Great Videos Rahul .. great content, to the point videos .. Thank you !!!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you like them! Hope you are liking the full series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @malkitsaggu
    @malkitsaggu ปีที่แล้ว

    Best video on AD Auth.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad it helped. Do check out full ASP Series here bit.ly/asp-net-core-series

  • @sid0000009
    @sid0000009 3 ปีที่แล้ว

    can we have the Oauth client on-prem or is should be in Azure for it to be registered in Azure AD? Thanks! ( very clear explanation )

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      The user must have credentials to login and should be registered in AD. But can access it from any where.

  • @shubhamkoolwal139
    @shubhamkoolwal139 3 ปีที่แล้ว +1

    great explanation ..............

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you like it Shubham. Do check out my other videos in this series. You might like them!

  • @LamLe-cl4he
    @LamLe-cl4he 3 ปีที่แล้ว +1

    Thanks for your video, very clear!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      You are welcome, Lam!

  • @freake14marut
    @freake14marut 2 ปีที่แล้ว

    Thanks for the tutorial.One issue i am facing ..i am getting the token generated in response but the token in not validated when making get request in post .It returns 401.

  • @storycafe6183
    @storycafe6183 2 ปีที่แล้ว

    You are doing a very great job. I'm following all your videos one by one. Keep it up bro. Can you please share the Other part of Remaining Authentication and full video on authorization .

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you and happy you liked this. Unfortunately I haven't made the second video yet. Here's the full ASP Series bit.ly/asp-net-core-series

  • @Tamileni1301
    @Tamileni1301 2 ปีที่แล้ว

    Wonderful explanation!!!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you , glad you liked it . Hope you are enjoying the ASP Series ?

  • @ksdvishnukumar
    @ksdvishnukumar 3 ปีที่แล้ว

    Very well explanation bro... All your videos are worth watching and grad the knowledge... Keep doing good work bro...

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      thank you, happy that these are helpful!

  • @shivamrastogi9988
    @shivamrastogi9988 3 ปีที่แล้ว +2

    Hi Rahul, When I am passing the access token in authorization section of postman.. its still showing not authenticated..

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Hard to tell tell without seeing it. suggest double checking the token version, inspecting it and making sure you have everything correct. There is a related post to help walk through www.rahulpnath.com/blog/jwt_authentication_asp_net_web_api/

    • @jaiminsolanki8849
      @jaiminsolanki8849 3 ปีที่แล้ว +1

      @@RahulNath Hi Rahul, Token is showing not authenticated in postman and also in application. please guid im gothough above link but it can't help.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      @@jaiminsolanki8849 Hard to tell why that would be. Did you try looking a the token using jwt.io? Suggest going through the video again and trying the steps once again if possible?

    • @jaiminsolanki8849
      @jaiminsolanki8849 3 ปีที่แล้ว +1

      @@RahulNath Thanks for the reply, I have fixed issue with add redirect url "localhost:5000/" in Authentication of App Registration into Azure Active Directory.

    • @jaiminsolanki8849
      @jaiminsolanki8849 3 ปีที่แล้ว +1

      @@RahulNath Also Updated scope parameter as "&scope=/.default" into Token Request URL.

  • @supsd4486
    @supsd4486 3 ปีที่แล้ว +1

    Hello @Rahul, could you please make a video on how to consume API which has JWT authentication?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Great suggestion - yes I have that in my list! Hope you are liking the series bit.ly/asp-net-core-series

  • @Prog2012
    @Prog2012 2 ปีที่แล้ว

    Thank you very much. I deeply understand jwt token. Thanks

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad to hear that. Hope you are enjoying the full series bit.ly/asp-net-core-series

  • @anandbabu6413
    @anandbabu6413 3 ปีที่แล้ว

    Very helpful topic and thank you so much for your time.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad it was helpful Anand!

  • @shashikantpawar7069
    @shashikantpawar7069 3 ปีที่แล้ว +1

    Thank you great content ... Can u make a real time application with all the concept you talked in all video ..it will help alot ..just a suggestion

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Shashikant for the suggestion. It's very valid. Yes I do plan to do a real time application covering all these concepts some time. It was my original idea too. Once I cover most of the basic building blocks I'll start doing such videos. (Also it needs a lot more effort 😀)

  • @srinivasdasari5592
    @srinivasdasari5592 3 ปีที่แล้ว +1

    Enjoying your videos Rahul. Very nice!!! Can you please extend this video by securing Microservices through Azure API Management, Azure AD and authorizing APIs using role based access control.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Great suggestion Srinivas! Thank you

  • @ahmadalbaz6059
    @ahmadalbaz6059 3 ปีที่แล้ว

    nice explanation Rahul
    subscribed and waiting for the video about the authorization code flow

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Ahmad! Yes need to start working on that video 😀

  • @Rajeshsingh-ws5th
    @Rajeshsingh-ws5th 3 ปีที่แล้ว +1

    Here you mention return path as localhost:5000, but when you are running you api 44334. what is the difference in that??

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Good catch Rajesh. That is the callback URL. Since in this case I did not have any front-end application but got the token from the browser URL itself it worked fine. Otherwise that is the URL to which Azure AD will redirect to. So it needs to match the URL where your application will be hosted so that it can automatically get the token from the redirected URL. Hope that clears your question.

    • @Rajeshsingh-ws5th
      @Rajeshsingh-ws5th 3 ปีที่แล้ว

      @@RahulNath thanks, love watch your videos. keep going.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@Rajeshsingh-ws5th Glad you do!

  • @sameerpawar5339
    @sameerpawar5339 3 ปีที่แล้ว +1

    Hi Rahul,Thanx for sharing knowledge.
    Can you please create video on JWT authentication in .net with AWS API gateway

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Sameer for the feedback. Did you have any particular Identity Provider in mind? What do you use on AWS instead of Azure AD?

  • @surya-tl3uy
    @surya-tl3uy 2 ปีที่แล้ว

    Thank you for the topic, which I exactly looking for!!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad it was helpful! Do check out the full series here bit.ly/asp-net-core-series

  • @RogueCoder7505
    @RogueCoder7505 ปีที่แล้ว

    Hello good sir. When will you cover the authorization code flow approach? It's been two and a half years since you made this video😭

  • @sergeyfilat4238
    @sergeyfilat4238 2 ปีที่แล้ว +1

    I understand nothing, do you have any prerequisites videos to better be prepaid for this video?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Hey Sergey, What are you not understanding and what is it you are trying to learn ?

    • @sergeyfilat4238
      @sergeyfilat4238 2 ปีที่แล้ว +1

      @@RahulNath Thank you for answering. Your information is very concentrated. I need to start from examples of basic principals of authentication. May be from JWT AUTHENTICATION In ASP NET Core for simple use cases. The best style of examples and most clear explanation I found so far in the blog of Tony Spencer ASP.NET Core 5.0 - Authentication/Authorization - .Net Engineering Forum 2021-01-26, but unfortunately he is covers only cookies

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      @@sergeyfilat4238 Check out this video if that helps you th-cam.com/video/SFLG-gStXC0/w-d-xo.html
      I would also read the official docs around these. In this video I try to explain the overall flow with the authentication which uses Azure AD. Still relevant to many other providers to understand what happens under the hood etc.

    • @sergeyfilat4238
      @sergeyfilat4238 2 ปีที่แล้ว

      @@RahulNath I watched your link, it is very helpful, thank you. Now it is easy for me to go through your video too!!! How did you find it? Do you know another videos similar to th-cam.com/video/SFLG-gStXC0/w-d-xo.html ? Can you create such introduction videos so more people could watch your channel?

    • @sergeyfilat4238
      @sergeyfilat4238 2 ปีที่แล้ว

      @@RahulNath I watched your link, it is very helpful, thank you. Now it is easy for me to go through your video too!!! How did you find it? Do you know where to find similar introduction videos? Can you create such introduction videos so more people could watch your channel?

  • @mohramzi5836
    @mohramzi5836 2 ปีที่แล้ว

    I try this and works fine when login by paste the URL directly to the browser. But it fails to validate token when using Angular (SPA) where the token is sent by the Angular app. Any suggestions?

  • @anurag3487
    @anurag3487 3 ปีที่แล้ว +1

    Subscribed. Very informative. Very few people use Rider though. :)

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Anurag. Haha yeah true. I got a free subscription and started trying it out and like it. Main advantage is how easily I can go into the implementation of framework libraries.

    • @anurag3487
      @anurag3487 3 ปีที่แล้ว +1

      @@RahulNath I hoped for a Community edition of Rider but it isn't available. The trial version I suppose is only valid for 30 odd days. Having said that, Rider looks very cool and rich features oriented.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      @@anurag3487 Yes it is great IDE. They used to have Early Access Program, but looks like it's closed now www.jetbrains.com/rider/nextversion/

  • @sanjayi6245
    @sanjayi6245 3 ปีที่แล้ว

    Excellent Video Man. Wow. Subscribed

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Sanjay !

    • @sanjayi6245
      @sanjayi6245 3 ปีที่แล้ว

      Are you doing another video on Authentication @Rahul?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@sanjayi6245 Nothing planned yet. What did you want to be covered?

  • @freeguy2418
    @freeguy2418 ปีที่แล้ว

    Is that Azure AD work on .NET Core App or Only Work in .NET Core API?

  • @anuradhasapakale
    @anuradhasapakale 2 ปีที่แล้ว

    Do you have example for WebApi for OAuth implementation?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Not yet - it's something I have to get to doing a video on.

  • @niteshratnaparkhe1799
    @niteshratnaparkhe1799 8 หลายเดือนก่อน

    awesome explanation

    • @RahulNath
      @RahulNath  6 หลายเดือนก่อน

      Glad you like it Nitesh! Hope you are liking the ASP Series bit.ly/asp-net-core-series

  • @rahulchaurasia5560
    @rahulchaurasia5560 3 ปีที่แล้ว +1

    Hi Rahul, Lots of learning from your videos... leaving a question for you.. What can be done if tokens are compromised?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Happy you are liking it Rahul. Check out how you can revoke tokens docs.microsoft.com/en-us/azure/active-directory/enterprise-users/users-revoke-access?WT.mc_id=AZ-MVP-5003875
      Also do read about token lifetimes in general docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes?WT.mc_id=AZ-MVP-5003875
      Let me know if that answers your question.

    • @rahulchaurasia5560
      @rahulchaurasia5560 3 ปีที่แล้ว +1

      @@RahulNath Thanks Rahul :)

  • @ShahabLodhi
    @ShahabLodhi 2 ปีที่แล้ว

    Azure AD B2C pleaseeee with front end app

  • @andremorata
    @andremorata 3 ปีที่แล้ว

    wonderful job! Congrats!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you very much Andre!

  • @heernarang1744
    @heernarang1744 3 ปีที่แล้ว +1

    Is there another video for multi tenant application?

    • @heernarang1744
      @heernarang1744 3 ปีที่แล้ว +1

      Also loved this tutorial!
      If not yours - do you have a recommendation for the next video to watch?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you liked it Heer. Unfortunately I don't have a specific recommendations for that, but I will add this to my list. Any further details on the specific scenario you are looking for

  • @ТимурГусейнов-к5м
    @ТимурГусейнов-к5м 2 ปีที่แล้ว

    Hi, Rahul. Thanks for this video, it's really very clear explanation about Azure AD. But I have question about acquire silent token and about scopes of Microsoft Graph. How to close with authorization our resource (API's) and why do we need this scopes in Azure AD?

  • @Tanmaygaming0406
    @Tanmaygaming0406 2 ปีที่แล้ว

    while hitting URL to generate token,
    I am getting "The account needs to be added as an external user in the tenant first".
    Can anyone help me on this?

  • @amitkandpal762
    @amitkandpal762 3 ปีที่แล้ว +1

    Hi Rahul, thank you for the awesome tutorials. Your tutorials are easy to understand and has cleared my doubts.
    Could you please make a video on jwt refresh tokens and implementing it in live application. Once token generated how to store it and use it multiple times.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Great suggestion Amit - Yes I have one in my list to record!

  • @ldpoulin44
    @ldpoulin44 3 ปีที่แล้ว

    Great Video ! Still waitng for your video for the access code flow ;)

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Louis! Thank you for the push. I will start working on it soon!

  • @brushenas
    @brushenas 2 ปีที่แล้ว

    You are awesome. Great content

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you Bruce! Do check out the full series here bit.ly/asp-net-core-series

  • @sivaramkumar_perumal
    @sivaramkumar_perumal 3 ปีที่แล้ว +1

    Really helpful. Thanks

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad it was helpful, Sivaramkumar!

  • @chistysohailful
    @chistysohailful 3 ปีที่แล้ว +1

    Really helpful, can you pls make a similar one for Azure Function HTTP triggered Function App, could not find any on that topic, Thanks

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you for the suggestion Sohail. I have added it to my list, will make one. Between do checkout the other videos in this series
      th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @abhishekshahu1187
    @abhishekshahu1187 2 ปีที่แล้ว

    Hey I had followed up the same steps but when I am trying to use the bearer token to hit the weather forecast api from postman…I am still getting “Not authorized” error

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Is it this video that you are using the weather forecast API? If it's unauthorized possibly the API key is wrong or having some issues, have you double-checked the setting in the weather API app?

  • @RoySourav
    @RoySourav 3 ปีที่แล้ว +1

    awesome

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you. Do check out the other videos in this series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @tusharsinghal1333
    @tusharsinghal1333 3 ปีที่แล้ว +1

    while posting the implicit flow request URI , I am getting this error which says " The 'resource' request parameter is not supported."
    Please Help!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      What URL are you using ? Can you double check with the URL mentioned in the associated blog post www.rahulpnath.com/blog/jwt_authentication_asp_net_web_api/

  • @ahmadsawalhah9620
    @ahmadsawalhah9620 3 ปีที่แล้ว +1

    How can I use this lifecycle from within my application, without using fiddler ?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Good question Ahmad. This video was intended to show how all these different concepts work together. Based on the type of application you are developing you will be choosing different authentication flows as mentioned here. (I do plan to cover them some time on this channel) docs.microsoft.com/en-us/azure/active-directory/develop/authentication-flows-app-scenarios#scenarios-and-supported-authentication-flows?WT.mc_id=AZ-MVP-5003875

    • @ahmadsawalhah9620
      @ahmadsawalhah9620 3 ปีที่แล้ว +1

      @@RahulNath thank you, great job

  • @acmesoft
    @acmesoft ปีที่แล้ว

    Can you make a video to authenticate/authorize a Blazor APP with AWS Cognito?

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Thank you for the suggestion. I have Cognito on my list 👍

  • @CookieCaty
    @CookieCaty 3 ปีที่แล้ว

    Hello Rahul, I'm using the [Athorize] annotation in my controller and my response returns a valid token, but when I try to access my api via postman or swagger I always get 401. Any idea why?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Are you passing the correct token with the requests from postman ?

    • @franciscogajardo8498
      @franciscogajardo8498 2 ปีที่แล้ว +1

      @@RahulNath I solved it, at least it worked for me by copying the url to obtain the token as it is, if it is not completely the same, it will not work, even if the token is valid

  • @kumaranramarajj2833
    @kumaranramarajj2833 ปีที่แล้ว

    Thank you sir! ( my questions: What if the token is expired )

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      It will throw an error in the API and the UI/caller is responsible to refresh the token. Does that help?

  • @VinothKumar-uw2tz
    @VinothKumar-uw2tz 3 ปีที่แล้ว

    Excellent video

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Vinoth. Do check out my other videos in the ASP NET Series, you might like them! th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @krishnapandey729
    @krishnapandey729 3 ปีที่แล้ว

    thanks, I followed what you did and it worked. but when I replaced the auth endpoint to v2 its not working, only v1 is working with the way showed.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      I talked about this at around 10:00. Did you try fixing the configuration? Try debugging the token you are getting in jwt.io and see if you are able to find any differences.

  • @mariodgh
    @mariodgh 3 ปีที่แล้ว +1

    Excellent video. Are you planning to make any Authorization code flow video? :)

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Glad you like it Mario. Yes I do plan to make a few follow up videos around the different Authorization scenarios. Can't promise a date yet though (needs a bit more reading to be done 😀)

  • @MrRavi188
    @MrRavi188 3 ปีที่แล้ว

    Great Explanation. Thank you. I have a query :- Is there any sample available for converting existing MVC Application from form authentication to Azure AD authentication

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Ravindra, glad you like it. I am not sure of any such sample.

  • @ashishkkk1
    @ashishkkk1 3 ปีที่แล้ว +1

    Getting this error The reply URL specified in the request does not match the reply URLs configured for the application

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Double check the URL - usually happens where there is a mismatch on the URL used.

  • @franciscogajardo8498
    @franciscogajardo8498 2 ปีที่แล้ว +2

    I receive an Not Authenticated, what can it be?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Hard to tell without seeing Francisco. Do check the jwt.io the token info and also ensure the token versions are correct.

    • @WhiteLotusZuko
      @WhiteLotusZuko 2 ปีที่แล้ว

      same for me, even thoug receiving the access_token