-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autnticate/Create user from acces_token #233
Comments
Try doing |
Thanks a lot , you save my day or I don't know may be days 👍 ) |
Cool, thanks for closing the issue. |
@omab One general question , In case of twitter what will be the |
@ranjeetsghrix, you can pass it as a backend.do_auth({'oauth_token': '...', 'oauth_token_secret': '...'}) or backend.do_auth('oauth_token=...&oauth_token_secret=...') |
@omab It gives me 401 Client Error: Unauthorized |
@ranjeetsghrix, do you have a traceback? |
Hello, I have got the same problem like @ranjeetsghrix. I have also tried your suggestion @omab but it doesn't work for me. I hava two kinds of errors.
I am completely new in python and maybe I made some mistakes. BR |
@avonil, what's the code you are trying? How do you get the |
@avonil, that snippet looks good, how are you calling that view (what's the URL)? |
After that I have got error like above. As I told I am new and maybe I don't understand something. Should I get backend instance somewhere before ? |
@avonil instead of |
I want to authenticate and create the user by access token where the access token can be sent by the Iphone/android mobile.I have googled this issue and Found some useful info but that was mostly regarding Django social auth not python social auth. I have also find out this one question mostly similar to my question #180 but his problem is related to twitter and I want to know how to register user related any back-end.
I have used this code but it gives me the error 'unicode' object has no attribute 'do_auth' , I have called this function by
url -> url(r'^auth/(?P<backend>[^/]+)/$',register_by_access_token, name="test_auth"),
and backend I am using is
facebook
.The text was updated successfully, but these errors were encountered: