// 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 Microsoft.AspNet.Http; using Microsoft.AspNet.Security.OAuth; namespace Microsoft.AspNet.Security.Facebook { /// /// Configuration options for . /// public class FacebookAuthenticationOptions : OAuthAuthenticationOptions { /// /// Initializes a new . /// public FacebookAuthenticationOptions() { AuthenticationType = FacebookAuthenticationDefaults.AuthenticationType; Caption = AuthenticationType; CallbackPath = new PathString("/signin-facebook"); SendAppSecretProof = true; AuthorizationEndpoint = FacebookAuthenticationDefaults.AuthorizationEndpoint; TokenEndpoint = FacebookAuthenticationDefaults.TokenEndpoint; UserInformationEndpoint = FacebookAuthenticationDefaults.UserInformationEndpoint; } // Facebook uses a non-standard term for this field. /// /// Gets or sets the Facebook-assigned appId. /// public string AppId { get { return ClientId; } set { ClientId = value; } } // Facebook uses a non-standard term for this field. /// /// Gets or sets the Facebook-assigned app secret. /// public string AppSecret { get { return ClientSecret; } set { ClientSecret = value; } } /// /// Gets or sets if the appsecret_proof should be generated and sent with Facebook API calls. /// This is enabled by default. /// public bool SendAppSecretProof { get; set; } } }