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