<?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: authorizeFromControllerV2 error when authorizing in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/541115#M25955</link>
    <description>&lt;P&gt;Sorry, I missed this step,&lt;BR /&gt;If I do so I still can use the old version of the code?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 09:55:50 GMT</pubDate>
    <dc:creator>Ditza</dc:creator>
    <dc:date>2021-08-25T09:55:50Z</dc:date>
    <item>
      <title>authorizeFromControllerV2 error when authorizing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/540070#M25913</link>
      <description>&lt;P&gt;I am trying to switch from a long-life token to a short one.&lt;BR /&gt;I am using SwiftyDropbox SDK version 7.0.1&lt;/P&gt;&lt;P&gt;I am following the instructions on the readme tutorial on GitHub:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox/tree/7.0.1" target="_self"&gt;https://github.com/dropbox/SwiftyDropbox/tree/7.0.1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the "Begin authorization flow" section,&lt;BR /&gt;I change the function to:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pl-c1"&gt;authorizeFromControllerV2&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Now when I press on "Allow" in dropbox permission pop I am getting an error:&lt;/P&gt;&lt;P&gt;"Error Authorizining App. An error occurred authorizing your app. Please try again"&lt;/P&gt;&lt;P&gt;I saw this&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-problem-with-connecting-Dropbox-API-to-my-iOS-app-with/m-p/445201#M23246" target="_self"&gt;post&lt;/A&gt;&amp;nbsp;and added&amp;nbsp;SceneDelegate file to my project and added this code inside:&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;    func scene(_ scene: UIScene, openURLContexts URLContexts: Set&amp;lt;UIOpenURLContext&amp;gt;) {
        if let url = URLContexts.first?.url {
            
            let oauthCompletion: DropboxOAuthCompletion = {
              if let authResult = $0 {
                  switch authResult {
                  case .success:
                      print("Success! User is logged into DropboxClientsManager.")
                  case .cancel:
                      print("Authorization flow was manually canceled by user!")
                  case .error(_, let description):
                      print("Error: \(String(describing: description))")
                  }
              }
            }
            DropboxClientsManager.handleRedirectURL(url, completion: oauthCompletion)
            
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't help.&amp;nbsp;&lt;BR /&gt;When I click on cancel instead of Allow I am getting back to the AppDelegate file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:48:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/540070#M25913</guid>
      <dc:creator>Ditza</dc:creator>
      <dc:date>2021-08-19T13:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromControllerV2 error when authorizing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/540073#M25914</link>
      <description>&lt;P&gt;Have you &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens" target="_self"&gt;migrated your app registration to scopes&lt;/A&gt; yet? You can do so via the "Permissions" tab on the app's page on &lt;A href="https://www.dropbox.com/developers/apps" target="_self"&gt;the App Console&lt;/A&gt;. You'll need to do so before you can use the new authorizeFromControllerV2 method. (Apologies for the generic error message!)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 14:08:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/540073#M25914</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-08-19T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromControllerV2 error when authorizing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/541115#M25955</link>
      <description>&lt;P&gt;Sorry, I missed this step,&lt;BR /&gt;If I do so I still can use the old version of the code?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 09:55:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/541115#M25955</guid>
      <dc:creator>Ditza</dc:creator>
      <dc:date>2021-08-25T09:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: authorizeFromControllerV2 error when authorizing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/541172#M25956</link>
      <description>&lt;P&gt;Yes, scoped apps can still use the old authorizeFromController method. It will just use the default scopes set for the app in the App Console.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 14:34:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authorizeFromControllerV2-error-when-authorizing/m-p/541172#M25956</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-08-25T14:34:46Z</dc:date>
    </item>
  </channel>
</rss>

