Control your spotify player.
In order to test the spotify adapter it should be enough to generate a short-lived access token using the Developer Console of Spotify. The token will typically expire after one hour and needs to be re-created by repeating the steps below.
- Go to https://developer.spotify.com/console/post-next
- Create an access token with the permission
user-modify-playback-state
anduser-read-playback-state
- Add access token to the settings. Make sure to leave Client-ID and Client-Secret empty.
Although a bit more complex this option is recommened as it will keep spotify-adapter authorized over a long time:
- Log into Spoitfy Developer Dashboard
- Create a new application by clicking "Create A Client ID"
- Fill in required information and create a new application
-
On the application/client page press "Edit Settings" and add a new Redirect URI to "https://ppacher.github.io/spotify-auth-callback"
-
Copy Client-ID and Client-Secret and add it to the configuration of Spotify-Adapter:
-
Save Spotify-Adapter settings and open the settings menu again. Once the adapter has been reloaded, an authentication URL should be generated and visible in "Open URL to authenticate".
-
Copy the URL and open it in your browser. Follow the authentication procedure from Spotify by clicking on "Authorize".
-
You will be redirected to the "Redirect-URI" configured above, copy the code displayed on the page and add it as the access token to the Spotify-Adapter settings.
-
You're done :)