Thanks to Filipe, the asynchronous request to django is working correctly. A request to the endpoint url results in a JSON response with the token in it.
But now I have another gap in my "logic". Inside this angular app the django site is requested via a call like this, to takeover control from the app. var ref = window.open(url, '_self', 'location=yes'); ref.addEventListener('exit', function(event) { alert(event.type); }); The question is, how can I make a call the restricted view on the django site with the token included, to log in the user. Would it be a possibility to add the token as GET argument to the url? too many trees in this forest :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/00ca9fea-316e-405b-95ba-3bc554a0274d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.