Web Api Authentication And Authorization Using Azure ad | add roles to user

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 63

  • @azureteachnet
    @azureteachnet  2 года назад

    Here is the source code - github.com/AzureTeachNet/AzureTeachTutorials/tree/Angular_WebAPI_AzureAD_Authentication_Authorization/WebApiAngularAdDemo

  • @Sivet555
    @Sivet555 Год назад +1

    This is a great tutorial. One of the few ones that actually show what I needed.

    • @azureteachnet
      @azureteachnet  Год назад

      Thanks for the feedback. Please subscribe to the channel if you have not subscribed yet.

  • @mammoetsaus
    @mammoetsaus Год назад

    Amazing, the Postman integration is clean! 😎

  • @juhairahamed5342
    @juhairahamed5342 Год назад

    Azure As whole series are excellent

  • @marcoalayn3633
    @marcoalayn3633 2 месяца назад

    God Bless you, good man! 🧐👌

    • @azureteachnet
      @azureteachnet  2 месяца назад

      Thanks for feedback. please subscribe to the channel if you have not subscribed yet. The channel have a lot of realtime videos on azure. Thanks

  • @JoachimMaier-em5dz
    @JoachimMaier-em5dz Год назад

    Very nice Tutorial. The Postman part was extremely helpful. Thanks a lot.

    • @azureteachnet
      @azureteachnet  Год назад

      Thanks. Please subscribe to the channel, if you have not subscribed yet.

  • @hasithagunathilaka1821
    @hasithagunathilaka1821 6 месяцев назад

    Thanks for the video, very helpful

  • @TellaTrix
    @TellaTrix 11 месяцев назад

    I would really thanks for this valuable content on azure, I just have one question about this implicit flow that is this the openid connect protocol that we used ?

    • @azureteachnet
      @azureteachnet  11 месяцев назад

      Azure AD uses standard complaint implementations of Oauth2.0 and Open Id connect(OIDC)1.0.

    • @TellaTrix
      @TellaTrix 11 месяцев назад

      ​@@azureteachnet Hi , I really enjoyed your content! It would be great if you could continue to provide us with more information on Auth code flow and Client Credential flow. I’m particularly interested in understanding how, once a user is authenticated using any flow in a web app, they can use the same token to call a secure web API endpoint. I’m not sure what this process is called, but I’d love to learn more about it. Keep up the great work! Please Use dark mode for Visual Studio.

    • @azureteachnet
      @azureteachnet  11 месяцев назад +1

      @@TellaTrix Thanks for your time in providing the detailed feedback. The channel already have multiple videos on delegated and client credentials flow. I will explain auth code flow in one of my future videos. Thanks.

  • @TellaTrix
    @TellaTrix 2 года назад

    Wow, Naga awesome learning today for me. I was always thinking how this custom role does works in azure AD. Thank you Naga

  • @jeffwooldridge3495
    @jeffwooldridge3495 2 года назад

    Thanks for this video. Excellent overview of getting authentication up and running quickly and seamlessly. Kudos for the Postman setup part too.

    • @azureteachnet
      @azureteachnet  2 года назад

      Thanks for your comment. There are more videos on Azure in the channel. Please subscribe to the channel if you have not subscribed yet.

  • @sivasrisankar
    @sivasrisankar Год назад +1

    Thank you brother ❤

    • @azureteachnet
      @azureteachnet  Год назад +1

      please subscribe to the channel if you not subscribed yet. Thanks

  • @amarantes2001
    @amarantes2001 Год назад

    Great tutorial!, exactly what I was looking for. Thanks !

  • @discoveryray8299
    @discoveryray8299 2 года назад

    Super helpful. I had trouble getting my head around how was the postmanApp able to access WebAPIangluarDemo. My thought/guess is that since postmanAPP is requesting token on resource(WebAPIangularDemoApp) on behalf of the signed in user who has an app role(scope) inside the WebAPIangularDemoApp. Please correct me if i am wrong.

    • @azureteachnet
      @azureteachnet  2 года назад

      yes. please subscribe to the channel if you have not subscribed yet. Thank you.

  • @RAZUMOVSKY228
    @RAZUMOVSKY228 2 года назад

    Hej, In this video you have created two app registrations: first is AzAngularDemoApp, second: PostmanClientApp, but you have not updated client ID in the application, so that in asp net core api is still client id of AzAngularDemoApp, when we receive the token using postman token ID in it is client ID of postman app registration
    The question is: How web api fetches the token if client ID in appsettings does not match the client ID in token itself? Or it is done via scope in token?

    • @stubstunner
      @stubstunner Год назад

      I think it’s via the JWT itself. The original request from the SPA should contain the scope of the target resource no?

  • @SirajummuneerParvez
    @SirajummuneerParvez Год назад

    That was an awesome tutorial. Helped me a lot.

    • @azureteachnet
      @azureteachnet  Год назад

      Thanks for the feedback. Please subscribe to the channel if you have not subscribed yet.

  • @sonlethanh7375
    @sonlethanh7375 7 месяцев назад

    Cool. Exactly what I was looking for. Thanks

    • @azureteachnet
      @azureteachnet  7 месяцев назад

      Thanks for the feedback. Please subscribe to the channel if you have subscribed yet. Thanks

  • @kotavenkataramana6321
    @kotavenkataramana6321 2 года назад

    Excellent video in short.. Thanks for sharing the knowledge.. It would be so great if you could make a video on creating azure yml pipeline with a sample application.
    Thanks.

    • @azureteachnet
      @azureteachnet  2 года назад +1

      Thank you. Sure. I have it in my list. I have a plan to create yml pipelines for Docker build and Kubernates deployment using Azure pipelines too. Here is a video on deploying Angular Applications to Azure Storage account using Azure Pipelines(Not yml based). Please check it if you have not watched yet.
      ruclips.net/video/9PTFz_hTEpU/видео.html
      Thank you.

  • @seannalexander
    @seannalexander Год назад

    thanks bro, this was really helpful.

    • @azureteachnet
      @azureteachnet  Год назад

      Thanks for the feedback. Please subscribe to the channel if you have not subscribed yet. Thanks.

  • @pedromarcosramos9211
    @pedromarcosramos9211 7 месяцев назад +1

    Can you a post a Python3 and Flask3 receiving token from Angular sample, please?

    • @azureteachnet
      @azureteachnet  7 месяцев назад

      I am sorry. My Technical stack is specific to Microsoft Technologies only. I am not experienced with Python. Thanks.

  • @anurag3487
    @anurag3487 2 года назад

    very clear. thank you

  • @normancastrillo7907
    @normancastrillo7907 Год назад

    awesome! thank you so much

    • @azureteachnet
      @azureteachnet  Год назад

      Thank you for the feedback. Please subscribe to the channel if you have not subscribed yet.

  • @vishalyagnik8758
    @vishalyagnik8758 2 года назад

    I am getting need admin approval for other non manager role users. Can you please help me on that part? Thanks in advance.

  • @jialewu5967
    @jialewu5967 2 года назад

    Thank you so much for the video. I follow this video but get an 401 error when calling the api via postman. Is there any possible reasons that I can look into? BTW, I am using .Net 6 for the web api

    • @azureteachnet
      @azureteachnet  2 года назад

      1. check if the user has roles assigned.
      2. verify you are passing the proper scope as shown in the video.
      3. Check if the client application (postman) has permissions to access the api. If not, Go to Expose an Api and add postman app registrations client id as client application.
      4. grab the token and decode it in jwt.io site to verify if the token has the required scopes and roles.
      Ideally, If you replicate the video there should not be any issue. There are other videos in the channel in which I had to use the same concept 🙂. Please let me know if you still face the error.
      Subscribe to the channel, if you have not subscribed yet. There are more azure videos in the channel and more to come in future. Thank you

  • @rakeshkaddi
    @rakeshkaddi 2 года назад

    Nice explanation, Can we add users to the security group programmatically?

    • @azureteachnet
      @azureteachnet  2 года назад +1

      yup. we can do that. We can use powershell/Azure CLI or even .net programs as well. Please subscribe to the channel if you have not subscribed yet. Thank you.

  • @kancharla13
    @kancharla13 2 года назад

    Thanks for sharing the video. It is very helpful!! I have one question How can we access API from another API (without collection username and password)

    • @azureteachnet
      @azureteachnet  2 года назад

      Do you want to access the other api delegated(on behalf of user) ? Otherwise you can use an app registration and mention the api scope in startup.cs

    • @kancharla13
      @kancharla13 2 года назад

      @@azureteachnet yes, I wanted to call api on behalf of user . Either from class library or any other console app.

    • @azureteachnet
      @azureteachnet  2 года назад

      @@kancharla13 ok. Will post a video soon.

    • @kancharla13
      @kancharla13 2 года назад

      @@azureteachnet ok sure , thank you !! Is there any other services you offer ?

    • @azureteachnet
      @azureteachnet  2 года назад

      @@kancharla13 Thanks for asking. Right now busy with other commitments and hardly finding time.

  • @TheOpposto
    @TheOpposto Год назад

    Buen video!! Justo lo que necesitaba. Gracias!!!

    • @azureteachnet
      @azureteachnet  Год назад +1

      Thanks a lot for the feedback. Please subscribe to the channel

  • @natheeshkumar
    @natheeshkumar 2 года назад

    Nice...can you please add the video for normal email & passowrd, sigin with google option based autentication? please.... :)

    • @azureteachnet
      @azureteachnet  2 года назад

      Here is a video on Facebook login. Google authentication will be similar if you want to add through the azure. Check if it helps -ruclips.net/video/sd6pmmNY1PY/видео.html otherwise will post a video soon. Thank you.

  • @juhairahamed5342
    @juhairahamed5342 Год назад

    Thanks

  • @rakeshkaddi
    @rakeshkaddi 2 года назад

    Hi, Can we use Grant Type as client_credentials here?

    • @azureteachnet
      @azureteachnet  2 года назад +1

      Yup we can do that. However, In this video, I have shown generating the token on behalf of user (Delegated permissions flow). If you want to use Clinet_Credentials, you need to pass client_id and client_secret. Here is the video which may help.
      ruclips.net/video/PskWSEdc6v4/видео.html
      Please subscribe to the channel if you have not subscribed yet. Thank you.

    • @rakeshkaddi
      @rakeshkaddi 2 года назад

      @@azureteachnet Can we create AAD application using Powershell/CLI and set Acccess tokens (used for implicit flows) and ID tokens (used for implicit and hybrid flows)

    • @azureteachnet
      @azureteachnet  2 года назад

      @@rakeshkaddi Yes. It is possible.

    • @rakeshkaddi
      @rakeshkaddi 2 года назад

      @@azureteachnet Can you please provide me the link or commands

    • @azureteachnet
      @azureteachnet  2 года назад

      @@rakeshkaddi can you check this - schwabencode.com/blog/2022/03/09/azure-cli-create-azure-active-directory-app-registration . I did not tried it.

  • @sgeorge-jm7dx
    @sgeorge-jm7dx 2 года назад

    how about manages identity?

    • @azureteachnet
      @azureteachnet  2 года назад

      Yes. We can use managed Identity too.
      Please subscribe to the channel if you have not subscribed yet. Thanks