Desktop Auth Flow (auth.gettoken)

 
    • ben-xo schrieb...
    • Last.fm-Team
    • 18. Jul. 2010, 22:05

    Desktop Auth Flow (auth.gettoken)

    I've modified version 0.7.1 to support the desktop auth flow.

    I've submitted a patch to the SourceForge page. You can find it here or by browsing the SourceForge page to Tracker -> Patches.

    Apply the patch in the usual way: Download version 0.7.1, download the patch file, and then type "patch -p0 <auth-token.patch" into the console...

    Check out my latest Drum'n'Bass mixes at http://www.mixcloud.com/benxo (it scrobbles)
    • ben-xo schrieb...
    • Last.fm-Team
    • 18. Jul. 2010, 22:11
    To elaborate on what this is useful for:

    The "desktop auth flow" is how you get an API Session Key when you are writing an application for the desktop, rather than the web. In the web session flow, you receive your token as a callback: the user's browser provides it in the URL. But in the desktop flow, the application must request it using the method auth.getToken, and then provide it in the link that the user clicks.

    (Yes, I write desktop applications in PHP ;)

    Check out my latest Drum'n'Bass mixes at http://www.mixcloud.com/benxo (it scrobbles)
Anonyme Benutzer dürfen keine Beiträge schreiben. Bitte log dich ein oder registriere dich, um Beiträge in den Foren schreiben zu können.