Last post Oct 25, 2019 07:58 PM by BeRoots
Oct 21, 2019 05:00 PM|BeRoots|LINK
I tried to make policy role based authorization in an aspnet core 3 app but i have error when i acces to adminsitrator authorized route with the administrator account. I don't understand why... If someone have an idea.
Oct 22, 2019 02:09 AM|Sherry Chen|LINK
Hi BeRoots ,
What is the specific error? Is the error you are experiencing on the access route of all administrators or a specific administrator?
Best Regards ,
Oct 23, 2019 10:30 AM|BeRoots|LINK
Hi Sherry Chen.
The specific error is 403:
Is the error you are experiencing on the access route of all administrators or a specific administrator?
I have just one administrator and other role like member ; moderator but in this case the called route use [Authorize("RequireAdministratorRole")]
and I'm logged in with this administrator account.
Oct 25, 2019 06:46 PM|BeRoots|LINK
I have tested many things but still this 403 error on the road requiring authorization. If someone have an idea of the reason of the 403 error ;)
You can easly build the project from my repo (branch DEV). https://github.com/BeRoots/aspnetcore3-angular-spa/tree/dev
Thanks in advance.
Oct 25, 2019 07:58 PM|BeRoots|LINK
Ok. Apparently it's a bug. See