Open x1ddos opened 11 years ago
I'd actually be very interested in this enhancement. I am trying to pass a token from an iOS app to GAE using simpleauth (Facebook auth in the app, Open Graph call in App Engine) and I believe this would be a good step towards achieving what I am looking for.
I'm not sure there's a real benefit in adding it as a feature to the library as OAuth 2.0 access tokens are normally short lived, unless you're using offline mode.
Do you have a demo or maybe a PR?
Good point, I think it might be better for me to just create a normal session on GAE and store the FB token as a session variable instead of going through the trouble of implementing FB Auth on the backend when the front-end already takes care of it.
Reported by muijsenbergq
Hi,
I'm using your library and i need to be able to use stored tokens and try to reuse them. As a separate path from the OAuth flow.
At the moment a hacked away a little bit to achieve this functionality but maybe it's an idea to implement this (the right way)?
This i my method to use existing tokens and tap into your library. I made "get_consumer_info_for()" a class method,made it always return a 3-tuple and for the rest using the implementation from your demo.
btw, using this class to store tokens in db
Thanks!
Moved here from https://code.google.com/p/gae-simpleauth/issues/detail?id=6