How to delegate permission rights to my Angular App for my Asp.net Core Web API app in App registrations? RRS feed

  • Question

  • Hi, 

       I have two applications: One angular app on a port(ex: 4200) and asp.net core web api on another port(ex: 4332). I registered both my apps inside app registration section of Azure Active Directory page.

    Now, I want my client side app i.e Angular app to have permissions to access my Asp.net Core Web API app but in order to delegate the permissions I can't find my newly created web api app in the list.

    Can anyone help me how do I delegate permissions in such scenario?

    Here's the page I am trying to find my api app inside of angular app's app registration: 

    Edit: After searching around Expose API section inside my api app, There is an option to add client app but it is disabled. 

    ms forum help

    • Edited by Aniket95 Sunday, July 28, 2019 1:02 PM
    Sunday, July 28, 2019 12:45 PM


  • Hey Aniket,

    Are you a global administrator or application admin in your tenant? You might need to make sure your permissions are properly setup before you can set up a service to service application. 

    You should be able to do a service to service setup by going to the blade that you're in, in the screenshot you've provided. If it's not showing up under the My Apis tab, are you sure you created a scope for the 2nd AAD Application Registration? 

    You can add a scope in the "expose an api" blade, and then once you've added a scope you should be able to add the scope in the same blade that you have in the screenshot you've provided. (i.e. it should show up under the my apis tab after you've added a scope in the expose an api section)

    Please remember to mark one of the responses as answer if your question has been answered. If not please let us know if there are anymore questions. Thanks

    • Proposed as answer by Frank Hu MSFT Monday, July 29, 2019 11:01 PM
    • Marked as answer by Aniket95 Saturday, August 3, 2019 5:51 AM
    Monday, July 29, 2019 11:01 PM