Пример #1
0
        private void HookupAuthentication(SiteProvisioningBase siteProvisioningInstance)
        {
            siteProvisioningInstance.Realm = GetConfiguration("Realm");
            siteProvisioningInstance.AppId = GetConfiguration("AppId");
            siteProvisioningInstance.AppSecret = EncryptionUtility.Decrypt(GetConfiguration("AppSecret"), GetConfiguration("General.EncryptionThumbPrint"));

            siteProvisioningInstance.InstantiateSiteDirectorySiteClientContext(GetConfiguration("General.SiteDirectoryUrl"));
        }
Пример #2
0
        private void HookupAuthentication(SiteProvisioningBase siteProvisioningInstance)
        {
            siteProvisioningInstance.Realm = RoleEnvironment.GetConfigurationSettingValue("Realm");
            siteProvisioningInstance.AppId = RoleEnvironment.GetConfigurationSettingValue("AppId");
            siteProvisioningInstance.AppSecret = EncryptionUtility.Decrypt(RoleEnvironment.GetConfigurationSettingValue("AppSecret"), RoleEnvironment.GetConfigurationSettingValue("General.EncryptionThumbPrint"));

            siteProvisioningInstance.InstantiateAppOnlyClientContext(RoleEnvironment.GetConfigurationSettingValue("TenantAdminUrl"));
            siteProvisioningInstance.InstantiateSiteDirectorySiteClientContext(RoleEnvironment.GetConfigurationSettingValue("General.SiteDirectoryUrl"));
        }