andruzzzhka / BeatSaverDownloader

Mod for Beat Saber to download songs from BeatSaver.com in-game
MIT License
72 stars 42 forks source link

Star a song #3

Closed jetbalsa closed 6 years ago

jetbalsa commented 6 years ago

You can login a user and get a API key by posting data to https://www.beatsaver.com/api.php?mode=votekey the raw post data should be "username=$user&password=$password"

you will get a string back, just pass it back to

https://www.beatsaver.com/vote.php?id=$songid&token=$votetoken as a GET reqyest

xyonico commented 6 years ago

@JRWR Since logging in in VR is basically impossible and sending password unhashed is not a good idea, what about linking BeatSaver accounts with Steam and Oculus users? That way this plugin and any other plugin can instead send a Steam session ticket and whatever Oculus uses and login automatically that way?

jetbalsa commented 6 years ago

Well, Since its over HTTPS, and its the same methods a browser would be using to send a password thats a moot point

--- the votekey can only be used for staring tracks and it permanent, you would only need to login once

Byorun commented 6 years ago

where would you save your vote key? Putting it inside the Beatsaber folder would enable all mods to read it but on the other hand that key only enables you to vote for a song.

jetbalsa commented 6 years ago

Right, thats the point in it, its not really that big of a secret to guard

On Fri, Jun 15, 2018 at 5:53 PM, Byorun notifications@github.com wrote:

where would you save your vote key? Putting it inside the Beatsaber folder would enable all mods to read it but on the other hand that key only enables you to vote for a song.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andruzzzhka/BeatSaverDownloader/issues/3#issuecomment-397751897, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxE1HJSawlaJ92roxuxzZMqDBRAMOmDks5t9CzigaJpZM4T76cL .