22 lines
1.0 KiB
C#
22 lines
1.0 KiB
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNet.Security.OAuth;
|
|
|
|
namespace Microsoft.AspNet.Security.Facebook
|
|
{
|
|
/// <summary>
|
|
/// Specifies callback methods which the <see cref="FacebookAuthenticationMiddleware"></see> invokes to enable developer control over the authentication process.
|
|
/// </summary>
|
|
public interface IFacebookAuthenticationNotifications : IOAuthAuthenticationNotifications
|
|
{
|
|
/// <summary>
|
|
/// Invoked when Facebook succesfully authenticates a user.
|
|
/// </summary>
|
|
/// <param name="context">Contains information about the login session as well as the user <see cref="System.Security.Claims.ClaimsIdentity"/>.</param>
|
|
/// <returns>A <see cref="Task"/> representing the completed operation.</returns>
|
|
Task Authenticated(FacebookAuthenticatedContext context);
|
|
}
|
|
}
|