Example #1
0
 private void AddSharePointAuthenticationStep(IAccountBasicInfoProvider basicInfoProvider)
 {
     if (!_authenticationStepAdded)
     {
         addWizardSubStep(new WizardSubStep(new WeblogConfigurationWizardPanelSharePointAuthentication(basicInfoProvider),
                                            StringId.ConfigWizardSharePointLogin,
                                            new WizardController.DisplayCallback(OnSharePointAuthenticationDisplayed),
                                            new VerifyStepCallback(OnValidatePanel),
                                            new WizardController.NextCallback(OnSharePointAuthenticationComplete),
                                            null,
                                            new WizardController.BackCallback(OnSharePointAuthenticationBack)));
         _authenticationStepAdded = true;
     }
 }
Example #2
0
        private void OnBasicInfoDisplayed(Object stepControl)
        {
            // Fixes for 483356: In account configuration wizard, hitting back in select provider or success screens causes anomalous behavior
            // Need to clear cached credentials and cached blogname otherwise they'll be used downstream in the wizard...
            _temporarySettings.BlogName = string.Empty;

            // get reference to data interface for panel
            IAccountBasicInfoProvider basicInfo = stepControl as IAccountBasicInfoProvider;

            // populate basic data
            basicInfo.ProviderAccountWizard    = _providerAccountWizard;
            basicInfo.AccountId                = _temporarySettings.Id;
            basicInfo.HomepageUrl              = _temporarySettings.HomepageUrl;
            basicInfo.ForceManualConfiguration = _temporarySettings.ForceManualConfig;
            basicInfo.Credentials              = _temporarySettings.Credentials;
            basicInfo.SavePassword             = basicInfo.Credentials.Password != String.Empty && (_temporarySettings.SavePassword ?? true);
        }
Example #3
0
        private void OnBasicInfoAndAuthenticationCompleted(IAccountBasicInfoProvider basicInfo, PerformBlogAutoDetection performBlogAutoDetection)
        {
            // copy the settings
            _temporarySettings.HomepageUrl       = basicInfo.HomepageUrl;
            _temporarySettings.ForceManualConfig = basicInfo.ForceManualConfiguration;
            _temporarySettings.Credentials       = basicInfo.Credentials;
            _temporarySettings.SavePassword      = basicInfo.SavePassword;

            // clear the transient credentials so we don't accidentally use cached credentials
            ClearTransientCredentials();

            if (!_temporarySettings.ForceManualConfig)
            {
                // perform auto-detection
                performBlogAutoDetection();
            }
            else
            {
                PerformSelectProviderSubStep();
            }
        }
Example #4
0
 public WeblogConfigurationWizardPanelSharePointAuthentication(IAccountBasicInfoProvider basicInfoProvider)
     : this()
 {
     _basicInfoProvider = basicInfoProvider;
 }
 public WeblogConfigurationWizardPanelSharePointAuthentication(IAccountBasicInfoProvider basicInfoProvider)
     : this()
 {
     _basicInfoProvider = basicInfoProvider;
 }
        private void OnBasicInfoAndAuthenticationCompleted(IAccountBasicInfoProvider basicInfo, PerformBlogAutoDetection performBlogAutoDetection)
        {
            // copy the settings
            _temporarySettings.HomepageUrl = basicInfo.HomepageUrl;
            _temporarySettings.ForceManualConfig = basicInfo.ForceManualConfiguration;
            _temporarySettings.Credentials = basicInfo.Credentials;
            _temporarySettings.SavePassword = basicInfo.SavePassword;

            // clear the transient credentials so we don't accidentally use cached credentials
            ClearTransientCredentials();

            if (!_temporarySettings.ForceManualConfig)
            {
                // perform auto-detection
                performBlogAutoDetection();
            }
            else
            {
                PerformSelectProviderSubStep();
            }
        }
 private void AddSharePointAuthenticationStep(IAccountBasicInfoProvider basicInfoProvider)
 {
     if (!_authenticationStepAdded)
     {
         addWizardSubStep(new WizardSubStep(new WeblogConfigurationWizardPanelSharePointAuthentication(basicInfoProvider),
                                            StringId.ConfigWizardSharePointLogin,
                                            new WizardController.DisplayCallback(OnSharePointAuthenticationDisplayed),
                                            new VerifyStepCallback(OnValidatePanel),
                                            new WizardController.NextCallback(OnSharePointAuthenticationComplete),
                                            null,
                                            new WizardController.BackCallback(OnSharePointAuthenticationBack)));
         _authenticationStepAdded = true;
     }
 }