Exemplo n.º 1
0
        public LoginResult GetSecurityWarningChallenge(bool sisi, string responseBody, Uri referer, out Token accessToken)
        {
            var uri = RequestResponse.GetSecurityWarningChallenge(sisi, state.ToString(), challengeHash);
            var req = RequestResponse.CreateGetRequest(uri, sisi, true, referer.ToString(), Cookies);

            return(GetAccessToken(sisi, req, out accessToken));
        }
Exemplo n.º 2
0
        public LoginResult GetRequestVerificationToken(Uri uri, bool sisi, out string verificationToken)
        {
            Response response;

            verificationToken = null;

            var req = RequestResponse.CreateGetRequest(uri, sisi, true, "URL", Cookies);

            req.ContentLength = 0;

            var result = RequestResponse.GetHttpWebResponse(req, UpdateCookieStorage, out response);

            if (result == LoginResult.Success)
            {
                verificationToken = RequestResponse.GetRequestVerificationTokenResponse(response);
            }

            return(result);
        }