public static AuthFilters.OAuth2Filter MakeFacebook(string clientId, IHttpFilter innerFilter) { var f = new AuthFilters.OAuth2Filter(innerFilter); var config = new AuthFilters.AuthConfigurationData(); config.ClientId = clientId; config.TechnicalName = "facebook.com"; config.ApiUriPrefix = "https://graph.facebook.com/"; config.SampleUri = "https://graph.facebook.com/me"; config.RedirectUri = "https://www.facebook.com/connect/login_success.html"; config.ClientSecret = ""; config.Scope = "read_stream"; config.Display = "popup"; config.State = ""; config.AdditionalParameterName = ""; config.AdditionalParameterValue = ""; config.ResponseType = ""; // blank==default "token". null doesn't marshall. config.AccessTokenLocation = ""; // blank=default "query"; config.AccessTokenQueryParameterName = ""; // blank=default "access_token"; config.AuthorizationUri = "https://www.facebook.com/dialog/oauth"; config.AuthorizationCodeToTokenUri = ""; f.AuthConfiguration = config; return(f); }
public static AuthFilters.OAuth2Filter MakeFacebook(string clientId, IHttpFilter innerFilter) { var f = new AuthFilters.OAuth2Filter(innerFilter); var config = new AuthFilters.AuthConfigurationData(); config.ClientId = clientId; config.TechnicalName = "facebook.com"; config.ApiUriPrefix = "https://graph.facebook.com/"; config.SampleUri = "https://graph.facebook.com/me"; config.RedirectUri = "https://www.facebook.com/connect/login_success.html"; config.ClientSecret = ""; config.Scope = "read_stream"; config.Display = "popup"; config.State = ""; config.AdditionalParameterName = ""; config.AdditionalParameterValue = ""; config.ResponseType = ""; // blank==default "token". null doesn't marshall. config.AccessTokenLocation = ""; // blank=default "query"; config.AccessTokenQueryParameterName = ""; // blank=default "access_token"; config.AuthorizationUri = "https://www.facebook.com/dialog/oauth"; config.AuthorizationCodeToTokenUri = ""; f.AuthConfiguration = config; return f; }