How to add Azure Active directory Authentication in an existing ASP.Net core web application (MVC).

Sdílet
Vložit
  • čas přidán 19. 05. 2023
  • How to add Azure Active directory Authentication in an existing ASP.Net core web application (MVC).
    Complete sample code can be found at github.
    Whole process can be done in following step.
    1. App registration.
    2. Add required nuget package to existing application.
    3. Configure existing application.
    4. Add logout.
    Sorce code/Sample code used can be found here
    github.com/bhargavapandey/asp...
  • Jak na to + styl

Komentáře • 47

  • @rohitshaw9191
    @rohitshaw9191 Před 19 hodinami +1

    I like this video. My only suggestion is that if you could add a bit more context of "Why" in the complete process.

    • @learniology
      @learniology  Před 18 hodinami

      Hi Rohit, appreciate your support and suggestions. Your suggestions help me to improve. Surly will add you suggestions.

  • @WDKDE
    @WDKDE Před 11 dny

    You are my hero!

  • @DaniLearnsIT
    @DaniLearnsIT Před 4 měsíci +1

    Ay dude, thank you for helping so many people and answering comments

    • @learniology
      @learniology  Před 4 měsíci +4

      Boss, learning is a collective responsibility, we can learn more when we share our expertise with other. 😂

  • @santhoshzany1451
    @santhoshzany1451 Před měsícem

    Thank U for simple and sweet info. logout not working. how to logout? please help

  • @stefit22
    @stefit22 Před 3 měsíci

    Is the above using openid protocol?

  • @juancarlosgomez857
    @juancarlosgomez857 Před 6 měsíci +2

    HI. The video it shows that it is created with MVC, it turns out that in my work I have an application mounted on .Net Framework with Web Forms, is there any way to implement SSO to this project?

    • @learniology
      @learniology  Před 5 měsíci

      Yes, please look for another video where I have demonstrated how to implement in we form.

    • @learniology
      @learniology  Před 4 měsíci

      Have a look at the below video I tried to explain on how to add in web forms
      ASP.NET WebForms App with OpenId Connect and Azure AD Connect
      czcams.com/video/mVIV14cds50/video.html

  • @purplepanther4153
    @purplepanther4153 Před 4 měsíci

    Thanks for the video. I have successfully implemented AD azure, however, if any page is bookmarked, Applicaiton browse that URL fine after few hours later. What could be wrong that I am doing.

    • @learniology
      @learniology  Před 3 měsíci

      Thanks for sharing! , look like you are not calling logout and you pages are not clearing cache.

  • @shwetachavan3911
    @shwetachavan3911 Před 3 měsíci

    Hi, If we use easy authentication in app service with Microsoft entra Id as identity provider , do we need any code to handle authentication?

    • @learniology
      @learniology  Před 3 měsíci

      At least azure configuration and reading tenant, organization details etc would be required. These value give identification to your application and say where to redirect and authenticate

  • @Prashuuu130
    @Prashuuu130 Před 10 měsíci

    Actually i don't know even what is what, but i am doing a project based on ad, it's likely to be my assigned work is, in login page we we actually enter a user name and password na. If both the user name and password in ad and what we entered credentials are matched it should show -"you been successfully authenticated " Else invalid login...( I hope u will help)

    • @Prashuuu130
      @Prashuuu130 Před 10 měsíci

      Actually I don't know how to do what to do can you help me regarding this..

    • @learniology
      @learniology  Před 10 měsíci

      Sure I will try to help you, drop details on bhargava@bhargavqpandey.com I will look and share you sample code

    • @Prashuuu130
      @Prashuuu130 Před 10 měsíci

      This domain is not working

    • @learniology
      @learniology  Před 10 měsíci

      Sorry typo correct is bhargava@bhargavapandey.com

  • @adalidaborip1726
    @adalidaborip1726 Před 4 měsíci +1

    Why is the login window not showing the permission you are requesting? User.Read, etc?

    • @learniology
      @learniology  Před 3 měsíci

      If you are talking about the sample code used here then I have used and existing registered applications in azure and used that value here. In case I create a new application registration then application will ask for details while running first time.

  • @caominhquan6211
    @caominhquan6211 Před rokem

    i don't log out in my app but i log out in aruze portal and when i come back to my web it still login, how can i fix it

    • @learniology
      @learniology  Před 11 měsíci +1

      This is normal behaviour, let me see how and what are alternatives of keeping “remember me” option.

    • @caominhquan6211
      @caominhquan6211 Před 11 měsíci

      @@learniology what if i log out current account in portal and login with another account when i come back to my web it's still login with previous account

    • @learniology
      @learniology  Před 11 měsíci

      @@caominhquan6211 No obviously it would be with current login, not previous account.

  • @kundanranjan4120
    @kundanranjan4120 Před 10 měsíci

    I have web form based application . Need to implement azure ad authentication in it. So can i do it on existing code or in create a new project and rewrite the code again. Please help .

    • @learniology
      @learniology  Před 10 měsíci

      Please follow the steps mentioned in video, you would be able to add Azure Active Directory Authentication in your existing code. Reach out to me at bhargava@bhargavapandey.com in case facing any issues

    • @kundanranjan4120
      @kundanranjan4120 Před 10 měsíci

      @@learniologyactually it is web application based on web forms. Not .net core based application . The scaffolding for the ms identity is not available. Please help in this.

    • @sylviachadamoyo3708
      @sylviachadamoyo3708 Před 10 měsíci

      ⁠@@learniology I tried to follow the steps the Microsoft.Identity.Web.UI does install because it is not compatible with .net framework 4.8 webForm application. Please help. Thank you Sir

    • @learniology
      @learniology  Před 10 měsíci

      Yes with 4.8 it’s not compatible, I will put another video and step by step guide for .net 4.8 onward,

    • @learniology
      @learniology  Před 9 měsíci

      will be uploading another video soon, many have same question.@@sylviachadamoyo3708

  • @wang88
    @wang88 Před 3 měsíci +1

    can you make a video to do .net core 6 ?I need to learning.

    • @learniology
      @learniology  Před 3 měsíci +1

      Sure will create and upload soon, do subscribe to channel so that you get update once video is posted

    • @learniology
      @learniology  Před 3 měsíci +1

      New video uploaded on asp.net core 6 , please check it out

    • @wang88
      @wang88 Před 3 měsíci

      @@learniologythank you

    • @Retzoogis
      @Retzoogis Před dnem

      @@learniology Keep them coming!!! you my hearo x10

    • @Retzoogis
      @Retzoogis Před dnem

      @@learniology Could you please provide some example using Azure AD, net core Api and angular ?
      Please

  • @rajnish27p
    @rajnish27p Před 4 měsíci +1

    Ypur voice very poor... Not able to undestand

    • @learniology
      @learniology  Před 4 měsíci

      In case you mute and just follow the video you will get idea and step to implement

    • @DaniLearnsIT
      @DaniLearnsIT Před 3 měsíci

      ( friendly fire )