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.

Metadata

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 Provenance
django-lastfm-auth-0.2.3.tar.gz 7.7 kB Without provenance 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

Security for django-lastfm-auth 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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