<?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: Authorization Code Flow from stand-alone application in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5439321#M6646</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P class=""&gt;&lt;SPAN&gt;If I understand correctly, in response to the first API request, a browser is needed to display scopes and allow users to authorize the app. Subsequently, using what you suggest, the remaining steps (receiving the code, requesting tokens) can be done in the standalone app.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, this is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Is the browser requirement due to security?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes. Your app shouldn't have access to the Spotify user's username and password, so they need to login to their account in the browser. &lt;STRONG&gt;This process only needs to be done once.&lt;/STRONG&gt;&amp;nbsp;After that, you can refresh the access token as many times as you want.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 16:56:01 GMT</pubDate>
    <dc:creator>Peter_Schorn</dc:creator>
    <dc:date>2022-10-04T16:56:01Z</dc:date>
    <item>
      <title>Authorization Code Flow from stand-alone application</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5436737#M6590</link>
      <description>&lt;P&gt;I want to play tracks for a user from a stand-alone application on a Windows computer. This application is written in Java. There doesn't appear to be a way to do the Authorization Code Flow for a user for this configuration. It looks like that can only be done from content hosted in a browser. Is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do the Client Credentials Flow but that does not authenticate a user and hence I cannot play a track for the user with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;US&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Laptop&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 23:38:12 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5436737#M6590</guid>
      <dc:creator>umeshberry</dc:creator>
      <dc:date>2022-09-28T23:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow from stand-alone application</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5438404#M6627</link>
      <description>&lt;P&gt;You can implement the authorization code flow from any application. You will need to open the authorization URL in the browser, but you can register a custom URL scheme for your Windows application (you'll have to do your own research on how to do this) so that Spotify redirects to your application after the user accepts your authorization request.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 23:14:37 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5438404#M6627</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2022-10-02T23:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow from stand-alone application</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5439181#M6642</link>
      <description>&lt;P&gt;Thanks. If I understand correctly, in response to the first API request, a browser is needed to display scopes and allow users to authorize the app. Subsequently, using what you suggest, the remaining steps (receiving the code, requesting tokens) can be done in the standalone app. This helps improve the user experience, but it is still not seamless. Ideally, the app would request authorization and the user would authorize from within the app without switching to a browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the browser requirement due to security? I am a newbie when it comes to security... can anyone provide insight on if that is the case and why?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 12:24:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5439181#M6642</guid>
      <dc:creator>umeshberry</dc:creator>
      <dc:date>2022-10-04T12:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow from stand-alone application</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5439321#M6646</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P class=""&gt;&lt;SPAN&gt;If I understand correctly, in response to the first API request, a browser is needed to display scopes and allow users to authorize the app. Subsequently, using what you suggest, the remaining steps (receiving the code, requesting tokens) can be done in the standalone app.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, this is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Is the browser requirement due to security?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes. Your app shouldn't have access to the Spotify user's username and password, so they need to login to their account in the browser. &lt;STRONG&gt;This process only needs to be done once.&lt;/STRONG&gt;&amp;nbsp;After that, you can refresh the access token as many times as you want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 16:56:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5439321#M6646</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2022-10-04T16:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow from stand-alone application</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5439376#M6647</link>
      <description>&lt;P&gt;Got it. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 18:44:35 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-from-stand-alone-application/m-p/5439376#M6647</guid>
      <dc:creator>umeshberry</dc:creator>
      <dc:date>2022-10-04T18:44:35Z</dc:date>
    </item>
  </channel>
</rss>

