CookieAuthenticationOptions.AccessDeniedPath Property

Definition

The AccessDeniedPath property informs the middleware that it should change an outgoing 403 Forbidden status code into a 302 redirection onto the given path.

public:
 property Microsoft::AspNetCore::Http::PathString AccessDeniedPath { Microsoft::AspNetCore::Http::PathString get(); void set(Microsoft::AspNetCore::Http::PathString value); };
public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get; set; }
member this.AccessDeniedPath : Microsoft.AspNetCore.Http.PathString with get, set
Public Property AccessDeniedPath As PathString

Property Value

Applies to