Click or drag to resize

AuthenticationHandler Class

Handles authentication using the configured ISecurityProvider implementation in the Owin pipeline.
Inheritance Hierarchy
SystemObject
  AuthenticationHandler
    AuthenticationHandlerAuthenticationOptions
      GSF.Web.SecurityAuthenticationHandler

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public class AuthenticationHandler : AuthenticationHandler<AuthenticationOptions>
View Source

The AuthenticationHandler type exposes the following members.

Constructors
 NameDescription
Public methodAuthenticationHandlerInitializes a new instance of the AuthenticationHandler class
Top
Properties
 NameDescription
Protected propertyContext
(Inherited from AuthenticationHandler)
Protected propertyFaulted
(Inherited from AuthenticationHandler)
Protected propertyHelper
(Inherited from AuthenticationHandler)
Protected propertyOptions
(Inherited from AuthenticationHandlerAuthenticationOptions)
Protected propertyRequest
(Inherited from AuthenticationHandler)
Protected propertyRequestPathBase
(Inherited from AuthenticationHandler)
Protected propertyResponse
(Inherited from AuthenticationHandler)
Top
Methods
 NameDescription
Protected methodApplyResponseChallengeAsync Override this method to deal with 401 challenge concerns, if an authentication scheme in question deals an authentication interaction as part of it's request flow. (like adding a response header, or changing the 401 result to 302 of a login page or external sign-in location.)
(Inherited from AuthenticationHandler)
Protected methodApplyResponseCoreAsync 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)
Protected methodApplyResponseGrantAsync Override this method to dela with sign-in/sign-out concerns, if an authentication scheme in question deals with grant/revoke as part of it's request flow. (like setting/deleting cookies)
(Inherited from AuthenticationHandler)
Public methodAuthenticateAsync 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)
Protected methodAuthenticateCoreAsync The core authentication logic which must be provided by the handler. Will be invoked at most once per request. Do not call directly, call the wrapping Authenticate method instead.
(Overrides AuthenticationHandler.AuthenticateCoreAsync)
Protected methodBaseInitializeAsync
(Inherited from AuthenticationHandler)
Public methodStatic memberClearAuthorizationCache Clears any cached authorizations for the specified sessionID.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodGenerateCorrelationId(AuthenticationProperties)
(Inherited from AuthenticationHandler)
Protected methodGenerateCorrelationId(ICookieManager, AuthenticationProperties)
(Inherited from AuthenticationHandler)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitializeCoreAsync
(Inherited from AuthenticationHandler)
Public methodInvokeAsync Called once by common code after initialization. If an authentication middle-ware responds directly to specifically known paths it must override this virtual, compare the request path to it's known paths, provide any response information as appropriate, and true to stop further processing.
(Overrides AuthenticationHandler.InvokeAsync)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodTeardownCoreAsync
(Inherited from AuthenticationHandler)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberTryGetPrincipal Attempt to get current security principal for specified sessionID.
Protected methodValidateCorrelationId(AuthenticationProperties, ILogger)
(Inherited from AuthenticationHandler)
Protected methodValidateCorrelationId(ICookieManager, AuthenticationProperties, ILogger)
(Inherited from AuthenticationHandler)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also