Unable to pass role and Product ID from UI(Angualr8) to WebApi(ASP.net core) RRS feed

  • Question

  • We are using Angular8 and ASP.Net Core with WebApi

    Implementation :

    We have implemented Msal authentication in API end using the claim identity. 

    We have sealed the controller with Authorize attribute.

    We are not able to pass to role and productid from Angular to Asp.net Core.

    Now , when we try to add Role based authorization , we have done the below things :

    1.       Added the role attribute to the Claims.  
    2.        Sealed the controller with “Authorize Roles = ‘role name’ 

     Issue : We are facing some issue when setting “Authorize Roles = ‘role name’   as we are not able to set the roles.

    • Moved by CoolDadTx Friday, April 17, 2020 1:32 PM ASP.NET related
    Friday, April 17, 2020 1:28 PM

All replies

  • Please post questions related to ASP.NET in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, April 17, 2020 1:32 PM