Why Authorize keyword for restrict access to actions and controllers doesn't work in .Net Core RRS feed

  • Question

  • User1750194582 posted


    Please help me!

    I searched a lot in MSDN documents and other websites but didn't get any answer to my problem. So, When I use [Authorize] on top of each controller or action in ASP.Net Core 2.1 or above, individually it works but when I determine a special role (for example: [Authorize(Roles ="Admin")] ) it never works and no one can access the controller or action!

    Please tell me is that my fault or ".Net Core 2" has bug ?!
    Also, I should add that I'm using Visual Studio 2017 v15.8.8 and .Net core 2.1


    Wednesday, November 14, 2018 8:05 AM

All replies