<?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: iOS 17.x can no longer login and allow dropbox access on app in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736309#M32518</link>
    <description>&lt;P&gt;OK, thanks. Is there an example currently on line that shows the&amp;nbsp;&lt;SPAN&gt;"customappscheme://auth";&amp;nbsp; method with PKCE?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2023 00:06:46 GMT</pubDate>
    <dc:creator>phunction</dc:creator>
    <dc:date>2023-12-12T00:06:46Z</dc:date>
    <item>
      <title>iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735146#M32468</link>
      <description>&lt;P&gt;i, something has changed with iOS 17.&amp;nbsp; My app is using the DropboxClient() api to get an auth token, which would show safari and ask for a login.&lt;/P&gt;&lt;P&gt;The login works, and they will get the question if they want to allow my app access. When they click on Allow, they now get the error:&lt;/P&gt;&lt;P&gt;Safari can't open the page because it couldn't connect to the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using the redirect uri of "&lt;A href="http://localhost/authorize" target="_blank" rel="noopener"&gt;http://localhost/authorize&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;private const string RedirectUri = "http://localhost/authorize";
var authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Code, appKey, RedirectUri, state: state, tokenAccessType: TokenAccessType.Offline);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was working fine until iOS 17 came out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to fix this? It appears that iOS 17 no longer allows safari to connect to localhost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using c# (xamarin/maui) for iOS.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 23:59:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735146#M32468</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2023-12-06T23:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735350#M32471</link>
      <description>&lt;P&gt;It looks like this is more about iOS and its interaction with local servers/Xamarin, as opposed to the Dropbox API itself. You may be better served by referring to resources about iOS or Xamarin for help with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, I found &lt;A href="https://learn.microsoft.com/en-us/answers/questions/1373132/httplistener-used-on-xamarin-ios-app-safari-cant-o" target="_blank"&gt;this thread&lt;/A&gt; which may be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 16:40:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735350#M32471</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-07T16:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735849#M32499</link>
      <description>&lt;P&gt;It appears HttpListener is the issue, is there another way to use Dropbox in my app? Or to at least authorize the app, because it does work fine on iOS 17 if the app has already been authorized/logged in with iOS 16&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 23:49:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735849#M32499</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2023-12-09T23:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735869#M32500</link>
      <description>&lt;P&gt;Some workaround (till real solution finding out) could be copying auth code by hands instead of using HttpListener for that.&amp;nbsp;🤷 Somehow ugly, but will work stable everywhere. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 03:16:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/735869#M32500</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-10T03:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736223#M32511</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/324915"&gt;@phunction&lt;/a&gt; As Здравко said, you can omit the redirect URI entirely, in which case the user will be presented with the authorization code directly so they can manually copy/paste it into the app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, to use a redirect URI if you can't use a server, you can use a redirect URI with a custom URL scheme for your app, if you use &lt;A href="https://developer.dropbox.com/oauth-guide" target="_blank"&gt;PKCE&lt;/A&gt; in the app authorization flow. A redirect URI with a custom URL scheme would look something like "customappscheme://auth"; you would need to decide on and set the exact strings you want to use and configure that for your app. Refer to your platform's documentation for information on defining and using custom schemes like that.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 18:24:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736223#M32511</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-11T18:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736236#M32515</link>
      <description>I was looking at the example for PKCE, but it still uses httplistener, which I think is the issue. What is the best way to make this work in iOS 17.x? Has the .Net API been tested with iOS 17.x yet?</description>
      <pubDate>Mon, 11 Dec 2023 18:39:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736236#M32515</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2023-12-11T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736246#M32516</link>
      <description>&lt;P&gt;The Dropbox .NET SDK examples happen to use a listener, but the authorization flow itself also supports custom URL schemes when using PKCE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, the Dropbox .NET SDK is not built for or tested with Xamarin/Maui/iOS in particular. I'll pass this along as a feature request for official support for that, but I can't promise if or when that might be implemented. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that, separate from the .NET SDK, Dropbox does offer native SDKs &lt;A href="https://github.com/dropbox/SwiftyDropbox" target="_blank"&gt;for Swift&lt;/A&gt; and &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c" target="_blank"&gt;for Objective-C&lt;/A&gt; meant for use on Apple platforms. Dropbox recommends using these native SDKs for those platforms, as they'll handle most of the work of the authorization flow for you. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 19:07:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736246#M32516</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-11T19:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736309#M32518</link>
      <description>&lt;P&gt;OK, thanks. Is there an example currently on line that shows the&amp;nbsp;&lt;SPAN&gt;"customappscheme://auth";&amp;nbsp; method with PKCE?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 00:06:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736309#M32518</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2023-12-12T00:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736496#M32524</link>
      <description>&lt;P&gt;I don't believe we have a full example for that exactly, but I have &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UWP-Webview-and-Token-Authorization/m-p/506972/highlight/true#M25045" target="_blank"&gt;a post here&lt;/A&gt; that may be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 15:03:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/736496#M32524</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-12T15:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750697#M32931</link>
      <description>&lt;P&gt;I am trying to get this work with my iOS app, I have an redirect uri of myapp://oauth2redirect&lt;/P&gt;&lt;P&gt;However, I am unable to use it as my dropbox account wants me to use a uri of https:&lt;/P&gt;&lt;P&gt;What am I missing here? How do I get pkce to work without having to have some kind of webserver setup?&lt;/P&gt;&lt;P&gt;When I try to start the authflow, the dropbox website gives me the error:&lt;/P&gt;&lt;P&gt;Error 400: Invalid redirect uri. It must exactly match one of the redirect uris you've preconfigured for your app (including the path).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;/P&gt;&lt;P&gt;var authorizeUrl = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Code, appKey, pkceuri, state: state, tokenAccessType: TokenAccessType.Offline, codeChallenge: codeChallenge);&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 20:50:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750697#M32931</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2024-02-12T20:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750705#M32933</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/324915"&gt;@phunction&lt;/a&gt; The particular error message you shared here is referring to the redirect URI not being registered for the app; it isn't referring to the protocol (such as "https://" or "myapp://").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whether using PKCE or not, the redirect URI value (the "pkceuri" variable in your code) must exactly match one of the redirect URIs registered for the app (based on the app key being used, the "appKey" variable in your code) on &lt;A href="https://www.dropbox.com/developers/apps" target="_self"&gt;the App Console&lt;/A&gt;. If the redirect URI does not match exactly, you'll get that error message. To fix that, sign in to the account that owns the app (if you're not already) and register the relevant redirect URI using the "OAuth 2" "Redirect URIs" section of the app's page on the App Console.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be helpful to print out the values of "appKey" and "pkceuri" to double check you're registering the exact redirect URI for the relevant app.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 21:03:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750705#M32933</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-12T21:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750735#M32934</link>
      <description>&lt;P&gt;I have my pkce redirect setup at&amp;nbsp; &amp;nbsp; mytestapp://oauth2redirect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I entered that into the app console (I was mistaken that the uri had to have https:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I send the request, I now get the page asking if I want to authorize the app, when I say ok, it just gives me a string to enter into my app, it does not appear to automatically redirect.&lt;/P&gt;&lt;P&gt;Does this work when debugging?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how the redirect works, when the browser opens and you authorize, does the browser now send back a message to iOS with the redirect URI, and iOS should see that the app has registered that uri in the info.plist then pass the returned info to the app?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 22:25:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750735#M32934</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2024-02-12T22:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750887#M32944</link>
      <description>&lt;P&gt;The redirect URI functionality works the same way regardless of whether you're debugging or if your app is in development or production status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the authorization page is showing the authorization code to the user on the authorization page (with a message like "Enter this code into ... to finish the process") then that means that a redirect URI wasn't used. If that's not what you intended, make sure you're still setting a redirect URI when building the authorization URI.&lt;/P&gt;
&lt;P&gt;And yes, when using a redirect URI, after the user authorizes the app, Dropbox will redirect the user's browser to the specified redirect URI with the authorization code included. When using a custom URI scheme (like "myapp://" or "mytestapp://" in your examples), the browser and operating system handle that redirect to send it to the right place. For example, as you said, iOS would see which app has that particular scheme registered and would send that redirect to that app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:04:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/750887#M32944</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-13T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: iOS 17.x can no longer login and allow dropbox access on app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/751071#M32956</link>
      <description>&lt;P&gt;Turns out I has an extra space in my&amp;nbsp; auth uri.&lt;/P&gt;&lt;P&gt;I have it working now, thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 02:42:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-17-x-can-no-longer-login-and-allow-dropbox-access-on-app/m-p/751071#M32956</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2024-02-14T02:42:59Z</dc:date>
    </item>
  </channel>
</rss>

