Exemple #1
0
        public OAuth1AuthorizeResponse ParseCallback(Uri url)
        {
            var resp = new OAuth1AuthorizeResponse();

            var r = WebUtil.FormDecode(url.Query);

            string verifier;

            if (r.TryGetValue("oauth_verifier", out verifier))
            {
                resp.TokenVerifier = verifier;
            }

            string t;

            if (r.TryGetValue("oauth_token", out t))
            {
                resp.Token = t;
            }

            return(resp);
        }
Exemple #2
0
 public Task <IDictionary <string, string> > GetAccessTokenAsync(OAuth1AuthorizeResponse authResponse)
 {
     return(GetAccessTokenAsync(authResponse.Token, authResponse.TokenVerifier));
 }