[x] in spicy/urls.py, to urlpatterns, add path('accounts/', include('allauth.socialaccount.urls')),
[x] in templates/account/signup.html, in the beginning, add {% load socialaccount %} and {% get_providers as socialaccount_providers %}
[ ] in templates/account/signup.html, , add link to Google sign in:
<a href="{% provider_login_url 'google' %}">Sign up with Google</a>
– this doesn't work
As a Visitor,
I want to sign up with Google SSO,
so that I have a convenient and secure way of authentication
Acceptance Criteria
]Instructions from the Allauth documentation](https://docs.allauth.org/en/latest/socialaccount/providers/google.html)
Tasks
App registration on Google
Django setup
pip install "django-allauth[socialaccount]
'allauth.socialaccount.providers.google',
tosettings.py
/admin/socialaccount/socialapp/
, create a new social app: Provider, “Google”settings.py
, underINSTALLED_APPS
, add'allauth.socialaccount.providers.google',
settings.py
, addspicy/urls.py
, tourlpatterns
, addpath('accounts/', include('allauth.socialaccount.urls')),
templates/account/signup.html
, in the beginning, add{% load socialaccount %}
and{% get_providers as socialaccount_providers %}
templates/account/signup.html
, , add link to Google sign in:<a href="{% provider_login_url 'google' %}">Sign up with Google</a>
– this doesn't workHeroku setup
Rerences