If I'm going directly to a page (which requires a user to be logged in) without having logged in, Django's authentication framework takes me to the login page and then redirects to the page I had requested based on the value in the next
variable.
However with django-social-auth
is this not the case? I've implemented django-social-auth
and I can see that the next
variable in the URL is populated correctly. But when I finally login using Facebook, it re-directs me to the URL specified in the LOGIN_REDIRECT_URL
variable.
Any idea where I'm going wrong?
how is the code of your template? You put the url call as follows:
{% url socialauth_begin 'facebook' %}{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}
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