Ejemplo n.º 1
0
        public static async Task <string> GetRedirUrl(string upn)
        {
            var domainName = upn.Split('@')[1];
            var domProfile = (await PreAuthDomain.GetDomains(d => d.DomainName == domainName)).SingleOrDefault();
            var res        = (domProfile == null) ? Settings.CurrSiteConfig.SiteRedemptionSettings.InviteRedirectUrl :
                             (!string.IsNullOrEmpty(domProfile.DomainRedemptionSettings.InviteRedirectUrl))
                    ? domProfile.DomainRedemptionSettings.InviteRedirectUrl
                        : Settings.CurrSiteConfig.SiteRedemptionSettings.InviteRedirectUrl;

            return(res);
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Index()
        {
            IEnumerable <PreAuthDomain> domains = null;

            try
            {
                domains = await PreAuthDomain.GetDomains();
            }
            catch (Exception)
            {
                //see if this domain needs the group object updated
                domains = await PreAuthDomain.RefreshAllPreAuthGroupData();
            }
            return(View(domains));
        }
        public async Task <ActionResult> Index()
        {
            IEnumerable <PreAuthDomain> domains = await PreAuthDomain.GetDomains();

            return(View(domains));
        }