allauth ships many templates, viewable in the
For instance, the view corresponding to the
account_login URL uses the
account/login.html. If you create a file with this name in your
code layout, it can override the one shipped with
Social Account Tags¶
provider_login_urltag to generate provider specific login URLs:
Here, you can pass along an optional
processparameter that indicates how to process the social login. You can choose between
Furthermore, you can pass along an
actionparameter with value
reauthenticateto indicate that you want the user to be re-prompted for authentication even if they already signed in before. For now, this is supported by Facebook, Google and Twitter only.
For easy access to the social accounts for a user use:
Finally, social authentication providers configured for the current site can be retrieved via:
Which will populate the
socialaccount_providersvariable in the template context with a list of configured social authentication providers. This supersedes the context processor used in version 0.21 and below.