<?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: PKCE support and example code for iOS SDK? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/PKCE-support-and-example-code-for-iOS-SDK/m-p/5983856#M13329</link>
    <description>&lt;P&gt;Also curious about this, I have been experimenting with the Spotify iOS SDK and authenticating the user by using the&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPTSessionManager instead of the SPTAppRemote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During my experimentation I have seen that I can successfully call sessionManager.renewSession and perform a token refresh to receive a new accessToken if it has expired, even though I have not setup any backend services nor set the&amp;nbsp;&lt;/P&gt;&lt;P&gt;tokenSwapURL or&amp;nbsp;tokenRefreshURL in SPTConfiguration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This makes me suspect that&amp;nbsp;&lt;SPAN&gt;PKCE authorization&amp;nbsp;flow is used by the&amp;nbsp;SPTSessionManager as default if no URL's are set in the configuration, is this correct?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 09:15:30 GMT</pubDate>
    <dc:creator>phunden</dc:creator>
    <dc:date>2024-04-03T09:15:30Z</dc:date>
    <item>
      <title>PKCE support and example code for iOS SDK?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/PKCE-support-and-example-code-for-iOS-SDK/m-p/5967097#M13263</link>
      <description>&lt;P&gt;I'm trying to do authentication on my app using the iOS SDK, and authenticate hopefully using &lt;A href="https://github.com/spotify/ios-sdk/blob/master/docs/auth.md" target="_self"&gt;the SPTSessionManager Authorization flow&lt;/A&gt;, the alternative method mentioned in the iOS's SDK FAQ under "What if I need to authorize without starting playback?".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use PKCE so I don't have to bundle my secret key in the app or set up a key exchange server. However, I can't find any hints on how to do this from the iOS SDK. I did find some code on GitHub that references a "SPTSessionManager" class, but that's not part of the current SDK. Can anybody point me to some sample code that will put me in the right direction?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 19:25:56 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/PKCE-support-and-example-code-for-iOS-SDK/m-p/5967097#M13263</guid>
      <dc:creator>king-sparkly</dc:creator>
      <dc:date>2024-03-25T19:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: PKCE support and example code for iOS SDK?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/PKCE-support-and-example-code-for-iOS-SDK/m-p/5983856#M13329</link>
      <description>&lt;P&gt;Also curious about this, I have been experimenting with the Spotify iOS SDK and authenticating the user by using the&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPTSessionManager instead of the SPTAppRemote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During my experimentation I have seen that I can successfully call sessionManager.renewSession and perform a token refresh to receive a new accessToken if it has expired, even though I have not setup any backend services nor set the&amp;nbsp;&lt;/P&gt;&lt;P&gt;tokenSwapURL or&amp;nbsp;tokenRefreshURL in SPTConfiguration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This makes me suspect that&amp;nbsp;&lt;SPAN&gt;PKCE authorization&amp;nbsp;flow is used by the&amp;nbsp;SPTSessionManager as default if no URL's are set in the configuration, is this correct?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:15:30 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/PKCE-support-and-example-code-for-iOS-SDK/m-p/5983856#M13329</guid>
      <dc:creator>phunden</dc:creator>
      <dc:date>2024-04-03T09:15:30Z</dc:date>
    </item>
  </channel>
</rss>

