CookieAuthenticationEvents.RedirectToAccessDenied Method

Definition

Overloads

RedirectToAccessDenied(RedirectContext<CookieAuthenticationOptions>)

Invoked when the client is being redirected to the access denied url.

RedirectToAccessDenied(CookieRedirectContext)

Implements the interface method by invoking the related delegate method.

RedirectToAccessDenied(RedirectContext<CookieAuthenticationOptions>)

Source:
CookieAuthenticationEvents.cs
Source:
CookieAuthenticationEvents.cs

Invoked when the client is being redirected to the access denied url.

public:
 virtual System::Threading::Tasks::Task ^ RedirectToAccessDenied(Microsoft::AspNetCore::Authentication::RedirectContext<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^ context);
public virtual System.Threading.Tasks.Task RedirectToAccessDenied (Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> context);
abstract member RedirectToAccessDenied : Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> System.Threading.Tasks.Task
override this.RedirectToAccessDenied : Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> System.Threading.Tasks.Task
Public Overridable Function RedirectToAccessDenied (context As RedirectContext(Of CookieAuthenticationOptions)) As Task

Parameters

Returns

Applies to

RedirectToAccessDenied(CookieRedirectContext)

Implements the interface method by invoking the related delegate method.

public:
 virtual System::Threading::Tasks::Task ^ RedirectToAccessDenied(Microsoft::AspNetCore::Authentication::Cookies::CookieRedirectContext ^ context);
public virtual System.Threading.Tasks.Task RedirectToAccessDenied (Microsoft.AspNetCore.Authentication.Cookies.CookieRedirectContext context);
abstract member RedirectToAccessDenied : Microsoft.AspNetCore.Authentication.Cookies.CookieRedirectContext -> System.Threading.Tasks.Task
override this.RedirectToAccessDenied : Microsoft.AspNetCore.Authentication.Cookies.CookieRedirectContext -> System.Threading.Tasks.Task
Public Overridable Function RedirectToAccessDenied (context As CookieRedirectContext) As Task

Parameters

context
CookieRedirectContext

Contains information about the event

Returns

Implements

Applies to