Create simple Spotify oAuth 2.0 Wordpress Plug-in

Job ID: 33590223

Budget: $30 – $250 USD

I need a simple WP Plug-in that allows me to add a Spotify oAuth 2.0 via their authorisation code flow (*not* implicit grant flow). This plug-in only needs to work with Spotify and should be kept very simple.

The proposed user journey:

- Install plug-in on Wordpress
- Display page that allows admin to enter Spotify configuration info (e.g client_id / client_secret / scope)
- Embed "Connect to Spotify" button onto page using shortcode e.g [spotify_connect]
- If user has not connected to Spotify, button displays 'Connect to Spotify'. When user clicks, it opens oAuth 2.0 permissions window and when user has completed the flow, store access_token and refresh_token
- If user is already connected (e.g has access_token set in their profile) display "Disconnect from Spotify" which would delete the access_token and refresh_token from their profile.

Further info: https://developer.spotify.com/documentation/general/guides/authorization/code-flow/
Related categories: PHP JavaScript WordPress OAuth