guide to configure Spotify as an OAuth Server



If you want users to login to your WordPress site using their Spotify credentials, you can simply do it using our WP OAuth Client plugin. Once you configure the Spotify with WordPress plugin, you can allow users to SSO to your WordPress site using Spotify. Similarly, you can map your WordPress roles based on your Spotify attributes/groups. To know more about other features we provide in WP OAuth Client plugin, you can click here.

Follow the Step-by-Step Guide to configure Spotify with WordPress :

  • First of all, go to https://developer.spotify.com/dashboard/applications and log into your Spotify account.
  • You will be presented with following screen. Click on Create new App.
  • spotify1
  • You will be shown a popup with a form where you have to enter Application Details. Fill the form with appropriate information and click on Next.
  • spotify2

    NOTE: Check Website in the question What are you building?

  • Click on YES. You will be asked additional information about the application. Fill in appropriate information and click on NEXT. Then you will be asked if you agree to Terms and Conditions. Make sure you read them and then click on Submit.
  • spotify3
  • After creating the application, you will be brought to Application Management page. Click on Show Secret. Here you will find given Client ID and Client Secret.
  • spotify4
  • Copy these credentials in MO OAuth Plugin configuration on corresponding fields.
  • Click on Edit Settings. You will get a pop up with app settings. scroll to Redirect URI add the same from MO OAuth Plugin and click on Save.
  • spotify5
  • You can download OAuth Client plugin using the following link.
    OAuth Single Sign On – SSO (OAuth client)

    Spotify Endpoints and Scope:

    Client ID : from the step 5 above
    Client Secret : from the step 5 above
    Scope: user-read-private user-read-email
    Authorize Endpoint: https://accounts.spotify.com/authorize
    Access Token Endpoint: https://accounts.spotify.com/api/token
    Get User Info Endpoint: https://api.spotify.com/v1/me

Free Trial

If you are facing any difficulty please mail us on info@xecurify.com.