Delen via


AccessDeniedContext Class

Definition

Provides access denied failure context information to handler providers.

public ref class AccessDeniedContext : Microsoft::AspNetCore::Authentication::HandleRequestContext<Microsoft::AspNetCore::Authentication::RemoteAuthenticationOptions ^>
public class AccessDeniedContext : Microsoft.AspNetCore.Authentication.HandleRequestContext<Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions>
type AccessDeniedContext = class
    inherit HandleRequestContext<RemoteAuthenticationOptions>
Public Class AccessDeniedContext
Inherits HandleRequestContext(Of RemoteAuthenticationOptions)
Inheritance

Constructors

AccessDeniedContext(HttpContext, AuthenticationScheme, RemoteAuthenticationOptions)

Initializes a new instance of AccessDeniedContext.

Properties

AccessDeniedPath

Gets or sets the endpoint path the user agent will be redirected to. By default, this property is set to AccessDeniedPath.

HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Properties

Additional state values for the authentication session.

Request

The request.

(Inherited from BaseContext<TOptions>)
Response

The response.

(Inherited from BaseContext<TOptions>)
Result

The HandleRequestResult which is used by the handler.

(Inherited from HandleRequestContext<TOptions>)
ReturnUrl

Gets or sets the return URL that will be flowed up to the access denied page. If ReturnUrlParameter is not set, this property is not used.

ReturnUrlParameter

Gets or sets the parameter name that will be used to flow the return URL. By default, this property is set to ReturnUrlParameter.

Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)

Methods

HandleResponse()

Discontinue all processing for this request and return to the client. The caller is responsible for generating the full response.

(Inherited from HandleRequestContext<TOptions>)
SkipHandler()

Discontinue processing the request in the current handler.

(Inherited from HandleRequestContext<TOptions>)

Applies to