Authentication Request to Spotify Web API Rejected

后端 未结 1 808
夕颜
夕颜 2020-12-07 06:28

I am trying to send an authentication request to Login to Spotify.

This is run through local host by a javascript XMLHttpRequest. However all I ever receive is an er

相关标签:
1条回答
  • 2020-12-07 06:48

    If I'm understanding you correctly, you're attempting to retrieve an authorization code from the user. If so, what you need to do is to redirect the user to the URL you've given above. This will take the user through a flow where the user grants your application permissions. When the flow is completed, the user is redirected to your redirect callback URL. If successful, the authorization code will be one of the query parameters when then the user is redirected back to your server.

    Documentation: Authorization Code flow

    0 讨论(0)
提交回复
热议问题