ArmedCards.Web.AuthConfig.RegisterAuth C# (CSharp) Метод

RegisterAuth() публичный статический Метод

public static RegisterAuth ( ) : void
Результат void
        public static void RegisterAuth()
        {
            // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
            // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166

            //OAuthWebSecurity.RegisterMicrosoftClient(
            //    clientId: "",
            //    clientSecret: "");

            BusinessLogic.Repositories.ProviderInfo.Base.ISelect _select
                = new BusinessLogic.Repositories.ProviderInfo.Select();

            List<Entities.ProviderInfo> providers = _select.Execute();

            Entities.ProviderInfo twitter = providers.Find(x => x.Name.ToLower() == "twitter");

            Authentication.OAuthSecurity.RegisterTwitterClient(
                consumerKey: twitter.Key,
                consumerSecret: Encoding.ASCII.GetString(Convert.FromBase64String(twitter.Secret))
            );

            Entities.ProviderInfo facebook = providers.Find(x => x.Name.ToLower() == "facebook");

            Authentication.OAuthSecurity.RegisterFacebookClient(
                appId: facebook.Key,
                appSecret: Encoding.ASCII.GetString(Convert.FromBase64String(facebook.Secret))
            );

            Authentication.OAuthSecurity.RegisterGoogleClient();
        }
AuthConfig