]> projects.mako.cc - twitter-api-cdsw/blobdiff - oauthlib/oauth2/rfc6749/clients/base.py
added updated version of oauthlib
[twitter-api-cdsw] / oauthlib / oauth2 / rfc6749 / clients / base.py
index e53ccc1d11ff45739c57b4fb77f99b33fb8213cd..4af9e767654c7a078bf7e3e2d25df0217128e78c 100644 (file)
@@ -229,7 +229,7 @@ class Client(object):
         self.redirect_url = redirect_url or self.redirect_url
         self.scope = scope or self.scope
         auth_url = self.prepare_request_uri(
-                authorization_url, redirect_uri=self.redirect_uri,
+                authorization_url, redirect_uri=self.redirect_url,
                 scope=self.scope, state=self.state, **kwargs)
         return auth_url, FORM_ENC_HEADERS, ''
 
@@ -297,7 +297,7 @@ class Client(object):
             raise InsecureTransportError()
 
         self.scope = scope or self.scope
-        body = self._client.prepare_refresh_body(body=body,
+        body = self.prepare_refresh_body(body=body,
                 refresh_token=refresh_token, scope=self.scope, **kwargs)
         return token_url, FORM_ENC_HEADERS, body
 

Benjamin Mako Hill || Want to submit a patch?