geometalab / osmaxx

OpenStreetMap Arbitrary Excerpt Export - Get the OpenStreetMap data you want in the file format you need
http://osmaxx.hsr.ch/
MIT License
26 stars 3 forks source link

#780 return user to original page after login #848

Closed das-g closed 7 years ago

das-g commented 7 years ago

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 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.)