I'm using django-social-auth for twitter. The first time a user has to authorize the application on twitter, but on the second login twitter should just redirect the user back without asking to authorize the application again.
For me it always asks to authorize the app even if I have already authorize the application before. I get logged on as normal but its not how it should work. Why?
The django-social-auth demo does not do this. What have I done different?
Have I missed something here to get this behavior? maybe a pipe that saves something as a cookie?
Link
<a href="{% url 'socialauth_begin' "twitter" %}" class="btn_1">Login with Twitter</a>
pipes
SOCIAL_AUTH_PIPELINE = (
'social_auth.backends.pipeline.social.social_auth_user',
#'social_auth.backends.pipeline.associate.associate_by_email',
'social_auth.backends.pipeline.user.get_username',
'social_auth.backends.pipeline.user.create_user',
'social_auth.backends.pipeline.userena.create_profile',
'social_auth.backends.pipeline.userena.create_account',
'social_auth.backends.pipeline.social.associate_user',
'social_auth.backends.pipeline.social.load_extra_data',
'social_auth.backends.pipeline.user.update_user_details'
)
Maybe your problem isn't in your code, but in your Twitter app settings. Make sure you have "Allow this application to be used to Sign in with Twitter" checked on your settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With