Skip to content
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
@alaatm

Description

@alaatm

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}").

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions