This redirects the user to the page from where they came to our /login page, after they've logged in using an external identity/authentication provider (currently OpenStreetMap).
With the help of the documentation this was surprisingly easy. Everything else was already in place. (The next= parameter when being redirected to our /login page is set by the django.contrib.auth machinery triggered by LoginRequiredMixin. The @login_required decorator on a function-style view would trigger a different mechanism to cause the same effect.)
connected to #780 (part of it, actually)
This redirects the user to the page from where they came to our
/login
page, after they've logged in using an external identity/authentication provider (currently OpenStreetMap).With the help of the documentation this was surprisingly easy. Everything else was already in place. (The
next=
parameter when being redirected to our/login
page is set by thedjango.contrib.auth
machinery triggered byLoginRequiredMixin
. The@login_required
decorator on a function-style view would trigger a different mechanism to cause the same effect.)