/// <summary> /// Install plugin /// </summary> public override void Install() { //settings var settings = new TwitterExternalAuthSettings() { ConsumerKey = "", ConsumerSecret = "", }; _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.ExternalAuth.Twitter.Login", "Login using Twitter account"); this.AddOrUpdatePluginLocaleResource("Plugins.ExternalAuth.Twitter.ConsumerKey", "Consumer key"); this.AddOrUpdatePluginLocaleResource("Plugins.ExternalAuth.Twitter.ConsumerKey.Hint", "Enter your consumer key here."); this.AddOrUpdatePluginLocaleResource("Plugins.ExternalAuth.Twitter.ConsumerSecret", "Consumer secret"); this.AddOrUpdatePluginLocaleResource("Plugins.ExternalAuth.Twitter.ConsumerSecret.Hint", "Enter your consumer secret here."); base.Install(); }
public TwitterExternalAuthMethod(TwitterExternalAuthSettings twitterExternalAuthSettings) { this._twitterExternalAuthSettings = twitterExternalAuthSettings; }