AuthenticationMiddleware<TOptions> Class

Represents an authentication middleware.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.OwinMiddleware
    Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware<TOptions>
      Microsoft.Owin.Security.Facebook.FacebookAuthenticationMiddleware
      Microsoft.Owin.Security.Google.GoogleAuthenticationMiddleware
      Microsoft.Owin.Security.MicrosoftAccount.MicrosoftAccountAuthenticationMiddleware
      Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerMiddleware
      Microsoft.Owin.Security.OAuth.OAuthBearerAuthenticationMiddleware
      Microsoft.Owin.Security.Twitter.TwitterAuthenticationMiddleware

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

Syntax

'Declaration
Public MustInherit Class AuthenticationMiddleware(Of TOptions As AuthenticationOptions) _
    Inherits OwinMiddleware
'Usage
Dim instance As AuthenticationMiddleware(Of TOptions)
public abstract class AuthenticationMiddleware<TOptions> : OwinMiddleware 
where TOptions : AuthenticationOptions
generic<typename TOptions>
where TOptions : AuthenticationOptions 
public ref class AuthenticationMiddleware abstract : public OwinMiddleware
[<AbstractClassAttribute>]
type AuthenticationMiddleware<'TOptions when 'TOptions : AuthenticationOptions> =  
    class 
        inherit OwinMiddleware 
    end
JScript does not support generic types and methods.

Type Parameters

  • TOptions
    The type of authentication options.

The AuthenticationMiddleware<TOptions> type exposes the following members.

Constructors

  Name Description
Protected method AuthenticationMiddleware<TOptions> Initializes a new instance of the AuthenticationMiddleware<TOptions> class.

Top

Properties

  Name Description
Protected property Next Advances to the next OwinMiddleware instance. (Inherited from OwinMiddleware.)
Public property Options Gets or sets the authentication options.

Top

Methods

  Name Description
Protected method CreateHandler Creates an authentication handler.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Invoke (Overrides OwinMiddleware.Invoke(IOwinContext).)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

Microsoft.Owin.Security.Infrastructure Namespace