pennersr / django-allauth

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://allauth.org
MIT License
9.6k stars 3.04k forks source link

Spotify listed as a provider in documentation but not information about setting it up is written in the documentation. #2906

Closed kwakubiney closed 3 years ago

kwakubiney commented 3 years ago

You must add a SocialApp record per provider via the Django admin containing these app credentials but then it does not show to setup for Spotify. Screenshot (282)

Any help? Or does it's setup follow one of the listed providers?

kwakubiney commented 3 years ago

I followed the docs and got it running.

Added the following to my settings.py

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.sites',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'Sparison',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.spotify',
]

SITE_ID=1

SOCIALACCOUNT_PROVIDERS = {
"spotify": {
    "APP": {
        "client_id": os.environ.get("SPOTIPY_CLIENT_ID"),
        "secret": os.environ.get("SPOTIPY_CLIENT_SECRET")
    },
    }}

where SPOTIPY_CLIENT_ID is my Spotify client ID and SPOTIPY_CLIENT_SECRET is my Spotify client secret. Added these in admin as well.