<?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 Developer Quota Mode User Authentication – Endpoints Not Returning 403 for Unauthenticated Users in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Developer-Quota-Mode-User-Authentication-Endpoints-Not-Returning/m-p/5600269#M9729</link>
    <description>&lt;P&gt;I'm running into an issue with my Spotify-enabled web app where some users are able to enter the Spotify OAuth 2.0 flow without being authenticated on my developer dashboard. After the callback function and getting a user's access token, I currently have a check if the&amp;nbsp;&lt;A href="https://api.spotify.com/v1/me" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me&lt;/A&gt;&amp;nbsp;endpoint returns a 403 error, which is the expected behavior in the error instance – user not authenticated on developer dashboard. If it doesn't, the user information is stored in Redis, and the user is able to proceed with using the app. I use Redis for session authentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm referencing this behavior based on this link: &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/quota-modes" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/concepts/quota-modes&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;"&lt;SPAN&gt;Users may be able to log into a development mode app without having been allowlisted by the developer. However, API requests with an access token associated to that user and app will receive a 403 status code error."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the error case I'm mentioning, some users are able to pass authentication without actually being on the developer dashboard. The endpoint mentioned above returns a 200 error, even when the user is not authenticated. The problem is I can't reliably reproduce this error, so I'm not sure exactly what code is being returned in this instance by that endpoint. Typically, if the user reauthenticates immediately, then the proper response is returned, but this behavior can incorrectly allow access to my app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody else run into this error, and knows what the problem could be? I'm assuming this is a bug, as this endpoint should never return a 200 error for an unauthenticated user.&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2023 20:31:13 GMT</pubDate>
    <dc:creator>smenta</dc:creator>
    <dc:date>2023-06-24T20:31:13Z</dc:date>
    <item>
      <title>Developer Quota Mode User Authentication – Endpoints Not Returning 403 for Unauthenticated Users</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Developer-Quota-Mode-User-Authentication-Endpoints-Not-Returning/m-p/5600269#M9729</link>
      <description>&lt;P&gt;I'm running into an issue with my Spotify-enabled web app where some users are able to enter the Spotify OAuth 2.0 flow without being authenticated on my developer dashboard. After the callback function and getting a user's access token, I currently have a check if the&amp;nbsp;&lt;A href="https://api.spotify.com/v1/me" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me&lt;/A&gt;&amp;nbsp;endpoint returns a 403 error, which is the expected behavior in the error instance – user not authenticated on developer dashboard. If it doesn't, the user information is stored in Redis, and the user is able to proceed with using the app. I use Redis for session authentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm referencing this behavior based on this link: &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/quota-modes" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/concepts/quota-modes&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;"&lt;SPAN&gt;Users may be able to log into a development mode app without having been allowlisted by the developer. However, API requests with an access token associated to that user and app will receive a 403 status code error."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the error case I'm mentioning, some users are able to pass authentication without actually being on the developer dashboard. The endpoint mentioned above returns a 200 error, even when the user is not authenticated. The problem is I can't reliably reproduce this error, so I'm not sure exactly what code is being returned in this instance by that endpoint. Typically, if the user reauthenticates immediately, then the proper response is returned, but this behavior can incorrectly allow access to my app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody else run into this error, and knows what the problem could be? I'm assuming this is a bug, as this endpoint should never return a 200 error for an unauthenticated user.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 20:31:13 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Developer-Quota-Mode-User-Authentication-Endpoints-Not-Returning/m-p/5600269#M9729</guid>
      <dc:creator>smenta</dc:creator>
      <dc:date>2023-06-24T20:31:13Z</dc:date>
    </item>
  </channel>
</rss>

