Ejemplo n.º 1
0
        public Session(auth.Response authResponse)
        {
            session.Request request = new session.Request(authResponse.ssoToken);
            request.cookieContainer = authResponse.cookieContainer;
            //remove AMAuthCookie after auth
            CookieCollection cc = request.cookieContainer.GetCookies(request.getUrl());

            foreach (Cookie co in cc)
            {
                if (co.Name.Equals("AMAuthCookie"))
                {
                    co.Expired = true;
                }
            }
            token          = Get(request);
            this.sessionId = token.sid;
        }
Ejemplo n.º 2
0
 public Session(auth.Response authResponse)
 {
     token = (session.Response) new session.Request(authResponse).getResponse();
 }