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

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 344

  • @RahulNath
    @RahulNath  3 роки тому +17

    Hope you all enjoy this video Here is the source code I used rahulpnath.visualstudio.com/DefaultCollection/UA-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.

  • @vikasgarg2035
    @vikasgarg2035 19 днів тому

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

  • @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

  • @vinodsunagar7366
    @vinodsunagar7366 29 днів тому

    Really good explanation of Authentication and authorisation concept❤

    • @RahulNath
      @RahulNath  22 дні тому

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

  • @tourism8016
    @tourism8016 3 роки тому +1

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

  • @jalanubha
    @jalanubha 3 роки тому +1

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

    • @RahulNath
      @RahulNath  3 роки тому +1

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

  • @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

  • @MG4Youtube
    @MG4Youtube Рік тому

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

  • @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 😀

  • @manishpandey4621
    @manishpandey4621 2 роки тому

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

    • @RahulNath
      @RahulNath  2 роки тому

      Happy to hear Manish! 😀

  • @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

  • @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.

  • @camping29
    @camping29 11 місяців тому

    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

  • @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 ua-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @TellaTrix
    @TellaTrix 3 роки тому +1

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

    • @RahulNath
      @RahulNath  3 роки тому

      Thank you and happy you like it.

  • @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!

  • @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.

  • @raymondwilliams8054
    @raymondwilliams8054 2 роки тому

    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 😀

  • @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

  • @imankurgoel
    @imankurgoel 9 місяців тому

    Nice video. Cleared my doubts around authentication and authorization.

    • @RahulNath
      @RahulNath  9 місяців тому

      Glad to hear that - do check out the ASP Series 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!

  • @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 - ua-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @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

  • @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

  • @robertmrobo8954
    @robertmrobo8954 2 роки тому

    Excellent video, really excellent.

  • @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

  • @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 ua-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @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!

  • @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

  • @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  2 роки тому

      Great suggestion Srinivas! Thank you

  • @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!

  • @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. 😂

  • @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 😀

  • @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

  • @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 UA-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.

  • @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

  • @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

  • @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?

  • @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/

  • @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 😀

  • @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

  • @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

  • @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

  • @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 ua-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @keerthanarani9929
    @keerthanarani9929 2 роки тому +1

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

  • @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

  • @nesnakboys379
    @nesnakboys379 2 роки тому

    Wonderful explanation!!!

    • @RahulNath
      @RahulNath  2 роки тому

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

  • @kowshikkowshik6668
    @kowshikkowshik6668 2 місяці тому

    Sir, thank u so much for the clear explanation

    • @RahulNath
      @RahulNath  2 місяці тому

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

  • @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!

  • @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

  • @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

  • @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.

  • @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?

  • @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 😀)

  • @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?

  • @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!

  • @andremorata
    @andremorata 3 роки тому

    wonderful job! Congrats!

    • @RahulNath
      @RahulNath  3 роки тому

      Thank you very much Andre!

  • @anandbabu6413
    @anandbabu6413 3 роки тому

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

    • @RahulNath
      @RahulNath  3 роки тому

      Glad it was helpful Anand!

  • @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!

  • @nisansalanayanajith7710
    @nisansalanayanajith7710 2 роки тому

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

  • @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

  • @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  2 роки тому +1

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

  • @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 :)

  • @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 😀)

  • @LamLe-cl4he
    @LamLe-cl4he 3 роки тому +1

    Thanks for your video, very clear!

  • @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

  • @ТимурГусейнов-к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?

  • @niteshratnaparkhe1799
    @niteshratnaparkhe1799 7 місяців тому

    awesome explanation

    • @RahulNath
      @RahulNath  5 місяців тому

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

  • @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

  • @supsd4486
    @supsd4486 3 роки тому +1

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

    • @RahulNath
      @RahulNath  2 роки тому

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

  • @dhanrajpatil1036
    @dhanrajpatil1036 Рік тому

    Bhai..❤ u got a subscriber

    • @RahulNath
      @RahulNath  Рік тому

      Thank you - Check out the full ASP Series here bit.ly/asp-net-core-series

  • @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.

  • @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!

  • @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.

  • @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
      ua-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @sid0000009
    @sid0000009 2 роки тому

    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.

  • @RajVadla
    @RajVadla 2 роки тому

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

  • @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 ua-cam.com/video/SFLG-gStXC0/v-deo.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 ua-cam.com/video/SFLG-gStXC0/v-deo.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?

  • @sabutom123
    @sabutom123 3 роки тому

    Great work !

    • @RahulNath
      @RahulNath  3 роки тому

      Thanks a lot! Do check out other videos in this series bit.ly/asp-net-core-series

  • @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! ua-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @shekharshinde2391
    @shekharshinde2391 2 роки тому

    Thanks sir, great video ✌🙏
    Wo paji kabhi has bhi liya karo😃

    • @RahulNath
      @RahulNath  2 роки тому

      Thank you Shekhar! 😀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!

  • @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.

  • @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.

  • @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.

  • @abhijoydas4478
    @abhijoydas4478 3 роки тому

    Brilliant. Subscribed.

  • @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?

  • @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

  • @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

  • @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?

  • @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

  • @freeguy2418
    @freeguy2418 Рік тому

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

  • @whooomzoilo4833
    @whooomzoilo4833 3 роки тому

    Good. Please make a ROPC tutorial with Web API.

    • @RahulNath
      @RahulNath  3 роки тому

      Glad you like it and thank you for the suggestion. Added to my list, but not sure by when.

  • @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/

  • @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😭

  • @TheRockynua
    @TheRockynua 3 роки тому

    great bhai, to the point

    • @RahulNath
      @RahulNath  3 роки тому +1

      Happy you liked it. You might also like the other videos in the series. You can check it out here ua-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @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

  • @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?