omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

Allow easier customization of login redirect URL #977

Closed jdp closed 7 years ago

jdp commented 8 years ago

It would be super useful if the backend or strategy could have methods to implement to get login, new user, error, etc. redirect URL's. Right now they are pulled from settings (like Django's LOGIN_REDIRECT_URL), but I would like to be able to use session data and/or any other request data to build the redirects.

omab commented 7 years ago

Technically that's doable by overriding the strategy get_setting method.