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.
How do I specifiy AccessDeniedPath? #878
Closed
Description
In RC2, it looks like we no longer use app.UseCookieAuthentication(options => \* ... *\);
but instead app.UseIdentity();
. In this case, how can I set a custom value for AccessDeniedPath
?
Also, how do I prevent the cookie auth middleware from doing the redirect all together. I would like to receive a 403 when authorization fails and handle it through app.UseStatusCodePagesWithReExecute("/h/{0}")
.