You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OAuthLib is a generic utility which implements the logic of OAuth without
14
-
assuming a specific HTTP request object. Use it to graft OAuth support onto your
15
-
favorite HTTP library. If you're a maintainer of such a library, write a thin
16
-
veneer on top of OAuthLib and get OAuth support for very little effort.
17
-
18
-
OAuthLib will fully support OAuth 1.0 (RFC 5849).
15
+
assuming a specific HTTP request object or workflow. Use it to graft OAuth support
16
+
onto your favorite HTTP library. If you're a maintainer of such a library,
17
+
write a thin veneer on top of OAuthLib and get OAuth support for very little effort.
19
18
20
19
HTTP Libraries supporting OAuthLib
21
20
----------------------------------
@@ -49,7 +48,7 @@ There are three ways in which you can sign a request.
49
48
Case study: Twitter
50
49
-------------------
51
50
52
-
The study aims to show HTTP library developers how OAuthLib can be used. Using OAuthLib this way is not recommended. Instead use it indirectly through an HTTP library that uses OAuthLib, such as `requests`.
51
+
**Objective: Show HTTP library developers how OAuthLib can be used.**
53
52
54
53
Twitter will give each client a consumer key and a consumer secret. The OAuth parameters are suplied in the authorization header and signed using HMAC-SHA1::
55
54
@@ -78,15 +77,9 @@ The url is constructed by adding an ``oauth_token`` parameter to the request url
78
77
79
78
**Crafting the authorization header using OAuthLib**::
*Use oauth.generate_params to create a dictionary of the required OAuth parameters. It will in addition to supplied parameters generate nonce, signature method, timestamp and version for you.*
88
-
89
-
*Note that any signature method (HMAC, SHA, Plaintext) requires type of request method, url and OAuth parameters. Client and token secrets are used with HMAC and RSA.*
0 commit comments