TwitterOptions Class¶
Options for the Twitter authentication middleware.
- Namespace
Microsoft.AspNetCore.Builder
- Assemblies
- Microsoft.AspNetCore.Authentication.Twitter
Syntax¶
public class TwitterOptions : RemoteAuthenticationOptions
-
class
Microsoft.AspNetCore.Builder.
TwitterOptions
Constructors¶
-
TwitterOptions
()¶ Initializes a new instance of the
Microsoft.AspNetCore.Builder.TwitterOptions
class.public TwitterOptions()
-
Properties¶
-
Microsoft.AspNetCore.Builder.TwitterOptions.
ConsumerKey
¶ Gets or sets the consumer key used to communicate with Twitter.
Return type: System.String Returns: The consumer key used to communicate with Twitter. public string ConsumerKey { get; set; }
-
Microsoft.AspNetCore.Builder.TwitterOptions.
ConsumerSecret
¶ Gets or sets the consumer secret used to sign requests to Twitter.
Return type: System.String Returns: The consumer secret used to sign requests to Twitter. public string ConsumerSecret { get; set; }
-
Microsoft.AspNetCore.Builder.TwitterOptions.
Events
¶ Gets or sets the
Microsoft.AspNetCore.Authentication.Twitter.ITwitterEvents
used to handle authentication events.Return type: Microsoft.AspNetCore.Authentication.Twitter.ITwitterEvents public ITwitterEvents Events { get; set; }
-
Microsoft.AspNetCore.Builder.TwitterOptions.
RetrieveUserDetails
¶ Enables the retrieval user details during the authentication process, including e-mail addresses. Retrieving e-mail addresses requires special permissions from Twitter Support on a per application basis. The default is false. See https://dev.twitter.com/rest/reference/get/account/verify_credentials
Return type: System.Boolean public bool RetrieveUserDetails { get; set; }
-
Microsoft.AspNetCore.Builder.TwitterOptions.
StateDataFormat
¶ Gets or sets the type used to secure data handled by the middleware.
Return type: Microsoft.AspNetCore.Authentication.ISecureDataFormat<Microsoft.AspNetCore.Authentication.Twitter.RequestToken> public ISecureDataFormat<RequestToken> StateDataFormat { get; set; }
-
Microsoft.AspNetCore.Builder.TwitterOptions.
SystemClock
¶ For testing purposes only.
Return type: Microsoft.AspNetCore.Authentication.ISystemClock [EditorBrowsable(EditorBrowsableState.Never)] public ISystemClock SystemClock { get; set; }
-