Reputation: 88509
I am using python-social-auth
for Google authentication in my Django application. Can I override the python-social-auth
URLs ?
By default, it's http://mydomain/login/google-oauth2/
and I need to change the URL as part of my view (get request) ; which has the end-point as http://mydomain/login/
.
Upvotes: 2
Views: 521
Reputation: 3701
The only way to override the URLs is to define your own ones pointing to the views and link it into your main urls.py file.
If what you are after for is to make /login
automatically handle the Google auth backend, then you need to define a custom view for it that can call python-social-auth views to fire up the process.
Upvotes: 2