コード例 #1
0
        public bool SiteWithADVerified(Guid IdSite, AzureADSiteValidation Properties)
        {
            bool       result  = false;
            SiteEntity site    = GetSiteById(IdSite.ToString());
            string     SiteUrl = site.URL;
            string     Token   = string.Empty;

            Token = ADManager.GetToken(Properties.TenantId, Properties.ClientAppId, Properties.AppKey);
            if (Token != string.Empty)
            {
                CreateIfNotExist(IdSite, Properties);
                result = ADManager.ValidateSite(SiteUrl, Token, Properties.SubscriptionId);
            }
            return(result);
        }