FacebookMiddleware Class

An ASP.NET Core middleware for authenticating users using Facebook.

Namespace
Microsoft.AspNetCore.Authentication.Facebook
Assemblies
  • Microsoft.AspNetCore.Authentication.Facebook

Inheritance Hierarchy

Syntax

public class FacebookMiddleware : OAuthMiddleware<FacebookOptions>
class Microsoft.AspNetCore.Authentication.Facebook.FacebookMiddleware

Constructors

FacebookMiddleware(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.FacebookOptions>)

Initializes a new Microsoft.AspNetCore.Authentication.Facebook.FacebookMiddleware.

Arguments:
public FacebookMiddleware(RequestDelegate next, IDataProtectionProvider dataProtectionProvider, ILoggerFactory loggerFactory, UrlEncoder encoder, IOptions<SharedAuthenticationOptions> sharedOptions, IOptions<FacebookOptions> 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.FacebookOptions>
Returns:An Microsoft.AspNetCore.Authentication.AuthenticationHandler`1 configured with the Microsoft.AspNetCore.Builder.FacebookOptions supplied to the constructor.
protected override AuthenticationHandler<FacebookOptions> CreateHandler()