Ejemplo n.º 1
0
        private static string GetPodRedirectUrl(Uri url, string fqdn)
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append(url.Scheme);
            stringBuilder.Append("://");
            stringBuilder.Append(fqdn);
            if (OwaEcpRedirectStrategy.ShouldSaveUrlOnLogoff(url) || OwaEcpRedirectStrategy.IsInCalendarVDir.Member)
            {
                stringBuilder.Append(url.PathAndQuery);
            }
            else
            {
                stringBuilder.Append("/");
                stringBuilder.Append(HttpProxyGlobals.VirtualDirectoryName.Member);
                stringBuilder.Append("/");
                string value;
                if (OwaEcpRedirectStrategy.TryGetExplicitLogonUrlSegment(url, out value))
                {
                    stringBuilder.Append(value);
                    stringBuilder.Append("/");
                }
            }
            return(stringBuilder.ToString());
        }
Ejemplo n.º 2
0
        // Token: 0x060002BD RID: 701 RVA: 0x0000DB38 File Offset: 0x0000BD38
        protected override Uri GetRedirectUrl(string redirectServer)
        {
            Uri        uri        = new Uri(OwaEcpRedirectStrategy.GetPodRedirectUrl(base.RequestContext.HttpContext.Request.Url, redirectServer));
            string     text       = null;
            string     host       = base.RequestContext.HttpContext.Request.Url.Host;
            HttpCookie httpCookie = base.RequestContext.HttpContext.Request.Cookies["orgName"];

            if (httpCookie != null && !string.IsNullOrEmpty(httpCookie.Value))
            {
                text = httpCookie.Value.ToLowerInvariant();
            }
            if (text != null && !host.Contains(Constants.OutlookDomain))
            {
                uri = OwaEcpRedirectStrategy.AddRealmParameter(uri, text);
            }
            return(uri);
        }