Skip to main content

Django-Lastfm-Auth is an extension to Django-Social-Auth which adds a backend for Last.fm.

If you are looking for a stand alone Last.fm authentication backend then please check out django-lastfmauth.

Requirements

  • Django-Social-Auth >= 0.3.3
    • Django >= 1.2.5

    • Python-OAuth2 >= 1.5.167

    • Python-Openid >= 2.2

API Keys

In order to use this application you must sign up for API keys on Last.fm. These should be put into your settings file using the settings:

LASTFM_API_KEY = '' # Your api key
LASTFM_SECRET = '' # Your api secret

Extra data

Similar to the other OAuth backends you can define

LASTFM_EXTRA_DATA = [(‘realname’, ‘realname’), ]

as a list of tuples (response name, alias) to store on the UserSocialAuth model.

Installation

To install django-lastfm-auth via pip:

pip install django-lastfm-auth

Or you can from the latest version from Github manually:

git clone git://github.com/mlavin/django-lastfm-auth.git
cd django-lastfm-auth
python setup.py install

or via pip:

pip install -e git+https://github.com/mlavin/django-lastfm-auth.git

Once you have the app installed you must include in your settings:

INSTALLED_APPS = (
    ...
    'social_auth',
    'lastfm_auth',
    ...
)

AUTHENTICATION_BACKENDS = (
    ...
    'lastfm_auth.backend.LastfmBackend',
    ...
)

SOCIAL_AUTH_IMPORT_BACKENDS = (
    ...
    'lastfm_auth',
    ...
)

Please refer to the Django-Social-Auth documentation for additional information.

Questions or Issues?

If you have questions, issues or requests for improvements please let me know on Github.

Release files for django-lastfm-auth 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-lastfm-auth 0.2.3
File Size Uploaded
django-lastfm-auth-0.2.3.tar.gz 7.7 kB Details

Release files / django-lastfm-auth-0.2.3.tar.gz

Download URL django-lastfm-auth-0.2.3.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
989af2cc0e51433acf711d5648df35b0bbc56db32482a401c55281eb41aeeb0a
BLAKE2b-256 checksum
How to use checksums
684d2b326875f5b83d8787055000fb15227c6cf27589e7cd3e6ae6d9451e1577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.3 This release

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page