RedirectContext Class

Definition

When a user configures the OpenIdConnectHandler to be notified prior to redirecting to an IdentityProvider an instance of RedirectContext is passed to the RedirectToIdentityProvider(RedirectContext) and RedirectToIdentityProviderForSignOut(RedirectContext).

public ref class RedirectContext : Microsoft::AspNetCore::Authentication::OpenIdConnect::BaseOpenIdConnectContext
public ref class RedirectContext : Microsoft::AspNetCore::Authentication::PropertiesContext<Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^>
public class RedirectContext : Microsoft.AspNetCore.Authentication.OpenIdConnect.BaseOpenIdConnectContext
public class RedirectContext : Microsoft.AspNetCore.Authentication.PropertiesContext<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions>
type RedirectContext = class
    inherit BaseOpenIdConnectContext
type RedirectContext = class
    inherit PropertiesContext<OpenIdConnectOptions>
Public Class RedirectContext
Inherits BaseOpenIdConnectContext
Public Class RedirectContext
Inherits PropertiesContext(Of OpenIdConnectOptions)
Inheritance
Inheritance

Constructors

RedirectContext(HttpContext, AuthenticationScheme, OpenIdConnectOptions, AuthenticationProperties)

Initializes a new instance of RedirectContext.

RedirectContext(HttpContext, OpenIdConnectOptions, AuthenticationProperties)

Properties

Handled

If true, will skip any default logic for this redirect.

HandledResponse (Inherited from BaseControlContext)
HttpContext (Inherited from BaseContext)
HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options (Inherited from BaseOpenIdConnectContext)
Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Properties
Properties

Gets or sets the AuthenticationProperties.

(Inherited from PropertiesContext<TOptions>)
ProtocolMessage

Gets or sets the OpenIdConnectMessage.

ProtocolMessage (Inherited from BaseOpenIdConnectContext)
Request (Inherited from BaseContext)
Request

The request.

(Inherited from BaseContext<TOptions>)
Response (Inherited from BaseContext)
Response

The response.

(Inherited from BaseContext<TOptions>)
Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)
Skipped (Inherited from BaseControlContext)
State (Inherited from BaseControlContext)
Ticket

Gets or set the Ticket to return if this event signals it handled the event.

(Inherited from BaseControlContext)

Methods

CheckEventResult(AuthenticateResult) (Inherited from BaseControlContext)
HandleResponse()

Skips any default logic for this redirect.

HandleResponse()

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

(Inherited from BaseControlContext)
SkipToNextMiddleware()

Discontinue processing the request in the current middleware and pass control to the next one. SignIn will not be called.

(Inherited from BaseControlContext)

Applies to