TwitterAuthenticationOptions Class

Options for the Twitter authentication middleware.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.AuthenticationOptions
    Microsoft.Owin.Security.Twitter.TwitterAuthenticationOptions

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

Syntax

'Declaration
Public Class TwitterAuthenticationOptions _
    Inherits AuthenticationOptions
'Usage
Dim instance As TwitterAuthenticationOptions
public class TwitterAuthenticationOptions : AuthenticationOptions
public ref class TwitterAuthenticationOptions : public AuthenticationOptions
type TwitterAuthenticationOptions =  
    class 
        inherit AuthenticationOptions 
    end
public class TwitterAuthenticationOptions extends AuthenticationOptions

The TwitterAuthenticationOptions type exposes the following members.

Constructors

  Name Description
Public method TwitterAuthenticationOptions Initializes a new instance of the TwitterAuthenticationOptions class.

Top

Properties

  Name Description
Public property AuthenticationMode If Active the authentication middleware alter the request user coming in and alter 401 Unauthorized responses going out. If Passive the authentication middleware will only provide identity and alter responses when explicitly indicated by the AuthenticationType. (Inherited from AuthenticationOptions.)
Public property AuthenticationType The AuthenticationType in the options corresponds to the IIdentity AuthenticationType property. A different value may be assigned in order to use the same authentication middleware type more than once in a pipeline. (Inherited from AuthenticationOptions.)
Public property BackchannelCertificateValidator Gets or sets the pinned certificate validator to use to validate the endpoints used in back channel communications belong to Twitter.
Public property BackchannelHttpHandler The HttpMessageHandler used to communicate with Twitter. This cannot be set at the same time as BackchannelCertificateValidator unless the value can be downcast to a WebRequestHandler.
Public property BackchannelTimeout Gets or sets timeout value in milliseconds for back channel communications with Twitter.
Public property CallbackPath The request path within the application's base path where the user-agent will be returned. The middleware will process this request when it arrives. Default value is "/signin-twitter".
Public property Caption Get or sets the text that the user can display on a sign in user interface.
Public property ConsumerKey Gets or sets the consumer key used to communicate with Twitter.
Public property ConsumerSecret Gets or sets the consumer secret used to sign requests to Twitter.
Public property Description Additional information about the authentication type which is made available to the application. (Inherited from AuthenticationOptions.)
Public property Provider Gets or sets the ITwitterAuthenticationProvider used to handle authentication events.
Public property SignInAsAuthenticationType Gets or sets the name of another authentication middleware which will be responsible for actually issuing a user ClaimsIdentity.
Public property StateDataFormat Gets or sets the type used to secure data handled by the middleware.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
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.Twitter Namespace