Thank you for posting your time and patience on this. To make controller accessible you could define the scopes as per https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/blob/main/3-Authorization-II/2-call-api-b2c/API/TodoListAPI/Controllers/TodoListController.cs
- The scopes if the API is called on behalf of a user.
- The app roles if the API can be called from a daemon app.
You can verify the scopes in the controller action by using the [RequiredScope] attribute. This attribute has several overrides. One that takes the required scopes directly, and one that takes a key to the configuration.
Please do let me know if you have any queries in the comments section.
Thanks,
Akshay Kaushik