This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Failed authorization for an authenticated user redirects to login page instead of access denied page #246
Closed
Description
A failed role check with the Authorize attribute redirects an authenticated user back to the login page. I haven't checked the internals, but that seems to indicate you are emitting a 401.
My assumption was that in that situation a 403 should be emitted and the cookie middleware will use the AccessDeniedPath instead.