TwitterMiddleware Class

ASP.NET Core middleware for authenticating users using Twitter.

Namespace
Microsoft.AspNetCore.Authentication.Twitter
Assemblies
  • Microsoft.AspNetCore.Authentication.Twitter

Inheritance Hierarchy

Syntax

public class TwitterMiddleware : AuthenticationMiddleware<TwitterOptions>
class Microsoft.AspNetCore.Authentication.Twitter.TwitterMiddleware

Constructors

TwitterMiddleware(Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider, Microsoft.Extensions.Logging.ILoggerFactory, System.Text.Encodings.Web.UrlEncoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions>, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.TwitterOptions>)

Initializes a Microsoft.AspNetCore.Authentication.Twitter.TwitterMiddleware

Arguments:
public TwitterMiddleware(RequestDelegate next, IDataProtectionProvider dataProtectionProvider, ILoggerFactory loggerFactory, UrlEncoder encoder, IOptions<SharedAuthenticationOptions> sharedOptions, IOptions<TwitterOptions> options)

Methods

CreateHandler()

Provides the Microsoft.AspNetCore.Authentication.AuthenticationHandler`1 object for processing authentication-related requests.

Return type:Microsoft.AspNetCore.Authentication.AuthenticationHandler<Microsoft.AspNetCore.Builder.TwitterOptions>
Returns:An Microsoft.AspNetCore.Authentication.AuthenticationHandler`1 configured with the Microsoft.AspNetCore.Builder.TwitterOptions supplied to the constructor.
protected override AuthenticationHandler<TwitterOptions> CreateHandler()