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

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • 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/bha...

КОМЕНТАРІ • 50

  • @DaniLearnsIT
    @DaniLearnsIT 6 місяців тому +2

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

    • @learniology
      @learniology  6 місяців тому +4

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

  • @rohitshaw9191
    @rohitshaw9191 2 місяці тому +2

    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  2 місяці тому

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

  • @WDKDE
    @WDKDE 3 місяці тому +1

    You are my hero!

  • @santhoshzany1451
    @santhoshzany1451 4 місяці тому +1

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

  • @juancarlosgomez857
    @juancarlosgomez857 9 місяців тому +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  8 місяців тому

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

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

      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
      ua-cam.com/video/mVIV14cds50/v-deo.html

  • @adalidaborip1726
    @adalidaborip1726 7 місяців тому +1

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

    • @learniology
      @learniology  6 місяців тому

      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.

  • @purplepanther4153
    @purplepanther4153 6 місяців тому

    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  6 місяців тому

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

  • @saireddy4810
    @saireddy4810 12 днів тому

    AzureAD SSO is free for learning purpose to test or not

    • @learniology
      @learniology  10 днів тому

      Yes, its free, but you have to create Azure account first time it will ask for your credit card details, transaction on INR 2 will be done.

  • @stefit22
    @stefit22 6 місяців тому

    Is the above using openid protocol?

  • @shwetachavan3911
    @shwetachavan3911 6 місяців тому

    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  6 місяців тому

      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

  • @wang88
    @wang88 5 місяців тому +1

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

    • @learniology
      @learniology  5 місяців тому +1

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

    • @learniology
      @learniology  5 місяців тому +1

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

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

      @@learniologythank you

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

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

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

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

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

    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 Рік тому

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

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

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

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

      This domain is not working

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

      Sorry typo correct is bhargava@bhargavapandey.com

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

    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  Рік тому +1

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

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

      @@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  Рік тому

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

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

    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  Рік тому

      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 Рік тому

      @@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 Рік тому

      ⁠@@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  Рік тому

      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  Рік тому

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

  • @rajnish27p
    @rajnish27p 6 місяців тому +1

    Ypur voice very poor... Not able to undestand

    • @learniology
      @learniology  6 місяців тому

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

    • @DaniLearnsIT
      @DaniLearnsIT 6 місяців тому

      ( friendly fire )