python-oauth2
python-oauth2 copied to clipboard
A fully tested, abstract interface to creating OAuth clients and servers.
Hi there, I'm trying to use Oauth2 in one of my project in Python 3.6 without success. As the last commit on Oauth2 is 1 year old I was wondering...
This broke authentication whenever any of the `oauth_` parameters contained the substring "realm" anywhere.
Closes #29. More robustly follows [URL normalization per the specification](http://oauth.net/core/1.0a/#rfc.section.9.1.2) now. See #133 for additional and related discussion.
fix bug File "/home/rendiya/Public/pypro/cucakrowo/facebook/venv/lib/python3.5/site-packages/oauth2/__init__.py", line 493, in sign_request self['oauth_body_hash'] = base64.b64encode(sha1(str(self.body).decode('utf-8')).digest()) AttributeError: 'str' object has no attribute 'decode'
I'd like to enable email with this, but I don't even know what a three-legged-token is or how to request a Gmail token. Could you add more detail to the...
I Can not run example/server.py ``` (.evn) D:\projects\python-oauth2>python example\server.py Traceback (most recent call last): File "example\server.py", line 25, in from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer ModuleNotFoundError: No module named 'BaseHTTPServer' ```...
That's pretty much it. Uses PyCrypto if it's installed, raises NotImplementedError otherwise.
Essentially, the problem I was experiencing is that django-piston 0.3 forces the oauth_callback parameter to be sent on requesting a token, as is specified in the OAuth 1.0a specification. However,...
I've upgraded `example/server.py` and `example/client.py` to use oauth2 instead of oauth. Running the server and then the client executes a sample transaction between the two.
The OAuth spec only specifies that HTTP POST url-encoded parameters should be added to the signature base string. Therefore, these lines correctly implement the PUT protocol within OAuth: https://github.com/simplegeo/python-oauth2/blob/master/oauth2/__init__.py#L646-648 However,...