Compartir a través de


OpenIdConnectAuthenticationHandler Class

 

A per-request authentication handler for the OpenIdConnectAuthenticationMiddleware.

Namespace:   Microsoft.Owin.Security.OpenIdConnect
Assembly:  Microsoft.Owin.Security.OpenIdConnect (in Microsoft.Owin.Security.OpenIdConnect.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.Infrastructure.AuthenticationHandler
    Microsoft.Owin.Security.Infrastructure.AuthenticationHandler<TOptions>
      Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationHandler

Syntax

public class OpenIdConnectAuthenticationHandler : AuthenticationHandler<OpenIdConnectAuthenticationOptions>
public ref class OpenIdConnectAuthenticationHandler : AuthenticationHandler<OpenIdConnectAuthenticationOptions^>
type OpenIdConnectAuthenticationHandler = 
    class
        inherit AuthenticationHandler<OpenIdConnectAuthenticationOptions>
    end
Public Class OpenIdConnectAuthenticationHandler
    Inherits AuthenticationHandler(Of OpenIdConnectAuthenticationOptions)

Constructors

Name Description
System_CAPS_pubmethod OpenIdConnectAuthenticationHandler(ILogger)

Creates a new OpenIdConnectAuthenticationHandler

Properties

Name Description
System_CAPS_protproperty Context

(Inherited from AuthenticationHandler.)

System_CAPS_protproperty Faulted

(Inherited from AuthenticationHandler.)

System_CAPS_protproperty Helper

(Inherited from AuthenticationHandler.)

System_CAPS_protproperty Options

(Inherited from AuthenticationHandler<TOptions>.)

System_CAPS_protproperty Request

(Inherited from AuthenticationHandler.)

System_CAPS_protproperty RequestPathBase

(Inherited from AuthenticationHandler.)

System_CAPS_protproperty Response

(Inherited from AuthenticationHandler.)

Methods

Name Description
System_CAPS_protmethod AddNonceToMessage(OpenIdConnectMessage)

Sets Nonce to !:Options.ProtocolValidator.GenerateNonce.

System_CAPS_protmethod ApplyResponseChallengeAsync()

Handles SignIn(Overrides AuthenticationHandler.ApplyResponseChallengeAsync().)

System_CAPS_protmethod ApplyResponseCoreAsync()

Core method that may be overridden by handler. The default behavior is to call two common response activities, one that deals with sign-in/sign-out concerns, and a second to deal with 401 challenges.(Inherited from AuthenticationHandler.)

System_CAPS_protmethod ApplyResponseGrantAsync()

Handles Signout(Overrides AuthenticationHandler.ApplyResponseGrantAsync().)

System_CAPS_pubmethod AuthenticateAsync()

Causes the authentication logic in AuthenticateCore to be performed for the current request at most once and returns the results. Calling Authenticate more than once will always return the original value. This method should always be called instead of calling AuthenticateCore directly.(Inherited from AuthenticationHandler.)

System_CAPS_protmethod AuthenticateCoreAsync()

Invoked to process incoming authentication messages.(Overrides AuthenticationHandler.AuthenticateCoreAsync().)

System_CAPS_protmethod BaseInitializeAsync(AuthenticationOptions, IOwinContext)

(Inherited from AuthenticationHandler.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_protmethod GenerateCorrelationId(AuthenticationProperties)

(Inherited from AuthenticationHandler.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetNonceKey(String)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod InitializeCoreAsync()

(Inherited from AuthenticationHandler.)

System_CAPS_pubmethod InvokeAsync()

Calls InvokeReplyPathAsync(Overrides AuthenticationHandler.InvokeAsync().)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod RememberNonce(OpenIdConnectMessage, String)

'Remembers' the nonce associated with this message. By default the nonce added as a secure cookie.

System_CAPS_protmethod RetrieveNonce(OpenIdConnectMessage)

System_CAPS_protmethod TeardownCoreAsync()

(Inherited from AuthenticationHandler.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_protmethod ValidateCorrelationId(AuthenticationProperties, ILogger)

(Inherited from AuthenticationHandler.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin.Security.OpenIdConnect Namespace

Return to top