Esempio n. 1
0
        public override AnchorMailbox CreateAuthModuleSpecificAnchorMailbox(IRequestContext requestContext)
        {
            HttpCookie    httpCookie = requestContext.HttpContext.Request.Cookies["DefaultAnchorMailbox"];
            AnchorMailbox result;

            if (httpCookie != null && !string.IsNullOrWhiteSpace(httpCookie.Value))
            {
                requestContext.Logger.SafeSet(HttpProxyMetadata.RoutingHint, "DefaultAnchorMailboxCookie");
                result = new LiveIdMemberNameAnchorMailbox(httpCookie.Value, null, requestContext);
            }
            else
            {
                requestContext.Logger.SafeSet(HttpProxyMetadata.RoutingHint, "UnauthenticatedAnonymous");
                result = new AnonymousAnchorMailbox(requestContext);
            }
            return(result);
        }
        // Token: 0x060001D8 RID: 472 RVA: 0x00008C00 File Offset: 0x00006E00
        public override AnchorMailbox CreateAuthModuleSpecificAnchorMailbox(IRequestContext requestContext)
        {
            string        liveIdMemberName;
            AnchorMailbox result;

            if (RequestCookieParser.TryGetDefaultAnchorMailboxCookie(requestContext.HttpContext.Request.Cookies, ref liveIdMemberName))
            {
                requestContext.Logger.SafeSet(3, "DefaultAnchorMailboxCookie");
                result = new LiveIdMemberNameAnchorMailbox(liveIdMemberName, null, requestContext);
            }
            else
            {
                requestContext.Logger.SafeSet(3, "UnauthenticatedAnonymous");
                result = new AnonymousAnchorMailbox(requestContext);
            }
            return(result);
        }
Esempio n. 3
0
        public override AnchorMailbox CreateAuthModuleSpecificAnchorMailbox(IRequestContext requestContext)
        {
            HttpCookie    httpCookie = requestContext.HttpContext.Request.Cookies["DefaultAnchorMailbox"];
            AnchorMailbox result;

            if (httpCookie != null && !string.IsNullOrWhiteSpace(httpCookie.Value) && SmtpAddress.IsValidSmtpAddress(httpCookie.Value))
            {
                string organizationContext = base.HttpContext.Items[Constants.WLIDOrganizationContextHeaderName] as string;
                requestContext.Logger.SafeSet(HttpProxyMetadata.RoutingHint, "DefaultAnchorMailboxCookie");
                result = new LiveIdMemberNameAnchorMailbox(httpCookie.Value, organizationContext, requestContext);
            }
            else
            {
                requestContext.Logger.SafeSet(HttpProxyMetadata.RoutingHint, "UnauthenticatedAnonymous");
                result = new AnonymousAnchorMailbox(requestContext);
            }
            return(result);
        }
        // Token: 0x060001B2 RID: 434 RVA: 0x00008840 File Offset: 0x00006A40
        public override AnchorMailbox CreateAuthModuleSpecificAnchorMailbox(IRequestContext requestContext)
        {
            AnchorMailbox result = null;
            string        text;

            if (RequestCookieParser.TryGetDefaultAnchorMailboxCookie(requestContext.HttpContext.Request.Cookies, ref text))
            {
                if (SmtpAddress.IsValidSmtpAddress(text))
                {
                    string organizationContext;
                    HttpContextItemParser.TryGetLiveIdOrganizationContext(requestContext.HttpContext.Items, ref organizationContext);
                    requestContext.Logger.SafeSet(3, "DefaultAnchorMailboxCookie");
                    result = new LiveIdMemberNameAnchorMailbox(text, organizationContext, requestContext);
                }
            }
            else
            {
                requestContext.Logger.SafeSet(3, "UnauthenticatedAnonymous");
                result = new AnonymousAnchorMailbox(requestContext);
            }
            return(result);
        }