get login url in code, rather than templates?
See original GitHub issueIs there a way to get the login URL that social auth uses to initial a login, for use in Python code rather than in some specific framework’s templating language?
Django’s template uses <a href="{% url "social:begin" "google-oauth2" %}">Google+</a>
but it would be super useful (for third party, proxied logins) to be able to call that url("social:begin", "google-oauth2")
with some kind of namespacing so that the url(...)
function name doesn’t collide.
How/where can this function be imported/called from?
(And would it be possible to put this in the docs for future searcher-of-information?)
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to properly get url for the login view in template?
You should use the name of the url, instead of its dotted path. ... urls file, you can see that the name of...
Read more >Bootstrap Login Form - free examples, templates & tutorial
Responsive login form built with Bootstrap 5. Collection of examples for signup forms, full page login templates, login modals & many other sign...
Read more >40 Best Login Page Examples and Responsive Templates ...
A list of elegant and exquisite login page examples and free responsive login form templates built with HTML and CSS for your next...
Read more >Customize New Universal Login Pages - Auth0
Learn how to create login page templates for the New Universal Login experience.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
reverse() is the opposite, you give it a view name and it will give you the path to it:
thanks. I didn’t use the right call with
reverse()
then!