Search code examples
pythondjangoauthenticationssltwitter-oauth

Django - Social Auth (Request URL is showing http instead of https)


I have intergrated SSL certificate in my application and i have https in my site but in django social auth the Request URL goes only with http. I know the Twitter does not allow requests from http. Link : http://humbusy.tk/social-auth/login/twitter/

My site has https but the request goes with http .Why ? and How do i resolve it ? Thanks .


Solution

  • Since Your urls.py looks follow.

    urlpatterns = [url(r'social-auth/', include('social_django.urls', namespace='social')) ] 
    

    u have add callback URL in the Twitter App Configuration like follow.

    https://humbusy.tk/social-auth/complete/twitter/
    http://humbusy.tk/social-auth/complete/twitter/