Why is App Roles missing?

Keith Viking 20 Reputation points
2023-05-09T16:00:30.39+00:00

I have created a new Azure test account and following the instructions found at https://learn.microsoft.com/en-us/answers/questions/1275119/how-do-i-protect-web-api?source=docs.

Created Azure Active Directory with B2C. I then tried to create a New App Registration which was done. Next i want to add a Client Secret - Done.

I now need to add an App Role but i dont have the option. I have Global Admin rights

User's image

There is no option on the left

User's image

Searched for it manually but nothing listed. I tried to enter it manually in the manifest file and received

User's image

What would i need to do in order to register an application for oauth2 so i can secure it therefore any calls made to it would require credentials to access the data? Its for a WebAPI Core application running on .Net 6.

Thanks

Developer technologies ASP.NET ASP.NET Core
Microsoft Security Microsoft Entra Microsoft Entra ID
Developer technologies C#
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2023-05-09T16:22:27.7866667+00:00
    0 comments No comments

  2. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-05-09T18:13:24.9133333+00:00

    B2C tenant apps do not support app roles. This makes sense, as B2C has no control of the users profile data, there is no way to assign roles to users. You use scopes to define permissions with a B2C application.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.