Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use auth token for lastfm credentials #1

Open
adamcik opened this issue Oct 20, 2013 · 6 comments
Open

Use auth token for lastfm credentials #1

adamcik opened this issue Oct 20, 2013 · 6 comments
Labels
C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal

Comments

@adamcik
Copy link
Member

adamcik commented Oct 20, 2013

See mopidy/mopidy#306 for original request.

@0nse
Copy link

0nse commented Aug 25, 2014

I agree with this. For now, one could at least allow to manually set an MD5-hash in the config file. For example, one could add a configuration entry password_md5 and extend frontend.py:30 to try password_hash=self.config['scrobbler']['password_md5']) on an Exception.

@adamcik
Copy link
Member Author

adamcik commented Aug 25, 2014

Not a bad idea, would at least be quite a bit nicer than how it is now. Could even just be hash=... I guess. I think we would accept such a change even though the security it buys is somewhat minimal given the rainbow table coverage for MD5s.

Other option could be to use http://www.last.fm/api/webauth or one of the other auth flows. Essentially we would need to add http://www.mopidy.com/authenticate/ as the callback and then have it use the auth token to get a session id which the user can then copy to the config. This way we never get your password, but mopidy would still have a session id with access to the account. At least on the bright side that access can then also be easily revoked.

Only downside a can think of for that variant is how, if at all it would work with librefm and that pylast probably doesn't support it (assuming we continue to use it).

@Mebus
Copy link

Mebus commented Dec 28, 2014

+1

@evamvid
Copy link

evamvid commented Sep 14, 2018

I've submitted PR #27, which does the MD5 hashing. Although OAuth would probably be better, this provides at least a little more safety than the plaintext.

@kingosticks
Copy link
Member

kingosticks commented Sep 15, 2018 via email

@kingosticks
Copy link
Member

As was discussed a bit more in #27, pylast does support the client specifying a session_key instead of username and password, so their webauth flow is an option. Looks like it would also work for librefm if it wasn't currently dead:

Libre.fm front end is currently down
While support for exporting data and deleting accounts can be added, I have taken the decision to temporarily close the front end of Libre.fm. Scrobbles will still be collected for existing users, but work/life is not giving me a lot of free time right now to work on handling requests. I need to automate the process.

Feel free to talk to me on Twitter, @mattl, if you have any urgent needs or questions.

Note that the pylast support for Web Auth described here seems to actually be for Desktop Auth. But that doesn't matter, we'd probably want to write our own simple handler to use at http://www.mopidy.com/authenticate/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal
Projects
None yet
Development

No branches or pull requests

5 participants