Last.fm¶
Backend class¶
For Django, add this class path to AUTHENTICATION_BACKENDS. For other
integrations, use the same class path in the framework-specific backend
setting.
Backend name |
Class path |
|---|---|
|
|
Last.fm uses a similar authentication process than OAuth2 but it’s not. In order to enable the support for it just:
Register an application at Get an API Account, set the Last.fm callback to something sensible like http://your.site/complete/lastfm
Fill in the API Key and API Secret values in your settings:
SOCIAL_AUTH_LASTFM_KEY = '' SOCIAL_AUTH_LASTFM_SECRET = ''
Enable the backend in
AUTHENTICATION_BACKENDSsetting.
Last.fm does not expose a stable account identifier in its authentication session response. The backend is therefore association-only: an authenticated local user must initiate and complete the connection. Last.fm cannot create a local user or authenticate a logged-out user.