joelverhagen / flask-rauth

Adds OAuth 1.0/a, 2.0, and Ofly consumer support for Flask.
Other
54 stars 22 forks source link

_cached_content is being overwritten as a function #7

Open dandroid88 opened 9 years ago

dandroid88 commented 9 years ago
access_token = resp.content.get('access_token')

AttributeError: 'function' object has no attribute 'get'

Commented out the content() override in RauthResponse and everything works. I am using python 2.7 and OAuth2. Took me a while to wire up pycharm and confirm. Just as I step into the if, it changes from a member variable to an instance function...not sure why though.

For now I will forgoe the caching...

dantaylor688 commented 9 years ago

Wow, thanks. I had the same error. Your comment saved me a bunch of time!

dandroid88 commented 9 years ago

Absolutely, we forked it, and removed the caching: https://github.com/flair-systems/flask-rauth Since the forked version wasn't in pip we added this to our requirements.txt: -e git://github.com/flair-systems/flask-rauth.git@face89b682684addb0637e534664aecc1ff72d24#egg=Flask_Rauth-master cheers