<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Autorize enpoint not working in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Autorize-enpoint-not-working/m-p/5436697#M6587</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/25510524"&gt;@g_user_test&lt;/a&gt;!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;There are several steps involved with getting a token through the authorization code flow. In the beginning, your app will redirect the user to&amp;nbsp;&lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;&amp;nbsp;with a set of query parameters described in the documentation. The user may then be redirected back to your application. The last step involves making a POST request to&amp;nbsp;&lt;A href="https://accounts.spotify.com/api/token" target="_blank"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&amp;nbsp;as &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/code-flow/#request-access-token" target="_self"&gt;described here.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So there are two URIs to keep in mind, both of them under the accounts.spotify.com hostname rather than api.spotify.com. Hope this helps!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 21:49:19 GMT</pubDate>
    <dc:creator>spotifyjosh</dc:creator>
    <dc:date>2022-09-28T21:49:19Z</dc:date>
    <item>
      <title>Autorize enpoint not working</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Autorize-enpoint-not-working/m-p/5435288#M6550</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the spotify public aPI, and for this I am trying to generate a token according to this documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/code-flow/" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/general/guides/authorization/code-flow/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that whenever I try to send the request for authorize, I get error 401 - Unauthorized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Endpoint used:&amp;nbsp;&lt;A href="https://api.spotify.com/authorize" target="_blank" rel="noopener"&gt;https://api.spotify.com/authorize&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/authorize" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/authorize&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;parameters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- client_id: the one generated by the app&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- response_type: code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- redirect_uri: the exact one (copy paste) that I set in the app&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The error that I am receiving is this one:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;401&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"No token provided"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone help with this error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 13:56:43 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Autorize-enpoint-not-working/m-p/5435288#M6550</guid>
      <dc:creator>g_user_test</dc:creator>
      <dc:date>2022-09-25T13:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Autorize enpoint not working</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Autorize-enpoint-not-working/m-p/5435310#M6552</link>
      <description>&lt;P&gt;As a mention, I also tried this endpoint:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 14:28:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Autorize-enpoint-not-working/m-p/5435310#M6552</guid>
      <dc:creator>g_user_test</dc:creator>
      <dc:date>2022-09-25T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Autorize enpoint not working</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Autorize-enpoint-not-working/m-p/5436697#M6587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/25510524"&gt;@g_user_test&lt;/a&gt;!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;There are several steps involved with getting a token through the authorization code flow. In the beginning, your app will redirect the user to&amp;nbsp;&lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;&amp;nbsp;with a set of query parameters described in the documentation. The user may then be redirected back to your application. The last step involves making a POST request to&amp;nbsp;&lt;A href="https://accounts.spotify.com/api/token" target="_blank"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&amp;nbsp;as &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/code-flow/#request-access-token" target="_self"&gt;described here.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So there are two URIs to keep in mind, both of them under the accounts.spotify.com hostname rather than api.spotify.com. Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 21:49:19 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Autorize-enpoint-not-working/m-p/5436697#M6587</guid>
      <dc:creator>spotifyjosh</dc:creator>
      <dc:date>2022-09-28T21:49:19Z</dc:date>
    </item>
  </channel>
</rss>

