TwitterMiddleware Class¶
ASP.NET Core middleware for authenticating users using Twitter.
- Namespace
Microsoft.AspNetCore.Authentication.Twitter
- Assemblies
- Microsoft.AspNetCore.Authentication.Twitter
Inheritance Hierarchy¶
System.Object
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware{Microsoft.AspNetCore.Builder.TwitterOptions}
Microsoft.AspNetCore.Authentication.Twitter.TwitterMiddleware
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: - next (Microsoft.AspNetCore.Http.RequestDelegate) – The next middleware in the HTTP pipeline to invoke
- options (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.TwitterOptions>) – Configuration options for the middleware
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 theMicrosoft.AspNetCore.Builder.TwitterOptions
supplied to the constructor.protected override AuthenticationHandler<TwitterOptions> CreateHandler()
-