<?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: .Net Maui in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769544#M33644</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/324915"&gt;@phunction&lt;/a&gt;&amp;nbsp;Здравко is correct, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.DropboxOAuth2Helper.html#Dropbox_Api_DropboxOAuth2Helper_ProcessCodeFlowAsync_System_String_System_String_System_String_System_String_HttpClient_System_String_" target="_blank"&gt;ProcessCodeFlowAsync&lt;/A&gt; to complete the authorization flow by having the user copy/paste the authorization code into the app, passing the authorization code to that 'code' parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do need to send the user through the authorization flow in their system browser, but when you don't use a redirect URI in the authorization flow, that authorization code is presented directly to the user directly so they can copy/paste it. That way you can still implement the flow even if you can't redirect to some listener.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, to get a refresh token, you'll need to request "offline" access.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 14:50:30 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2024-05-09T14:50:30Z</dc:date>
    <item>
      <title>.Net Maui</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769314#M33626</link>
      <description>&lt;P&gt;Hi, I need to find a way to connect my app with Dropbox. I am moving from a Xamarin.iOS app to .net Maui due to Xamarin not being supported anymore. (I can't just change my app to the new .NET as the libraries I used were not ported)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything I find onlines shows doing this with a webview, but that is no longer allowed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need to find a way to make this work with .Net Maui, surely this is possible?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 18:23:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769314#M33626</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2024-05-08T18:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Maui</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769362#M33633</link>
      <description>&lt;P&gt;We can't provide help for the third party platforms as they're not made by Dropbox, but please let me know if there's something we can help with on the Dropbox API or SDK itself. Perhaps someone else here has some experience with Maui though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the Dropbox .NET SDK, you can find &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_blank"&gt;the information that here&lt;/A&gt;. That should support .NET Standard 2.0. You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/main/dropbox-sdk-dotnet/Examples" target="_blank"&gt;the examples for the SDK here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 20:58:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769362#M33633</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-05-08T20:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Maui</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769375#M33635</link>
      <description>&lt;P&gt;The main issue is the call back to the platform and adding some kind of listener.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found somewhere a way to bring up a web login, and they could manually copy the key that is presented so it could be pasted into my app. I can't remember where that was and if it provided a refresh token as well so they would not have to do that every time the app is launched.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if someone else has an idea on how to make it work without that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to allow a login without having to spawn an external browser?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 21:32:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769375#M33635</guid>
      <dc:creator>phunction</dc:creator>
      <dc:date>2024-05-08T21:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Maui</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769383#M33636</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/324915"&gt;@phunction&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I found somewhere a way to bring up a web login, and they could manually copy the key that is presented so it could be pasted into my app. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/324915"&gt;@phunction&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If I have to bet, you have noticed usage of &lt;A title="Processes the second half of the OAuth 2.0 code flow" href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Dropbox.Api/DropboxOauth2Helper.cs#L488" target="_blank" rel="noopener"&gt;ProcessCodeFlowAsync&lt;/A&gt; method which first parameter accepts authentication code receive from browser. ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/324915"&gt;@phunction&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... and if it provided a refresh token ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That depends on whether you have set tokenAccessType during URL construction to Offline or no. In general it's supported.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 22:41:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769383#M33636</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-05-08T22:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Maui</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769544#M33644</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/324915"&gt;@phunction&lt;/a&gt;&amp;nbsp;Здравко is correct, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.DropboxOAuth2Helper.html#Dropbox_Api_DropboxOAuth2Helper_ProcessCodeFlowAsync_System_String_System_String_System_String_System_String_HttpClient_System_String_" target="_blank"&gt;ProcessCodeFlowAsync&lt;/A&gt; to complete the authorization flow by having the user copy/paste the authorization code into the app, passing the authorization code to that 'code' parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do need to send the user through the authorization flow in their system browser, but when you don't use a redirect URI in the authorization flow, that authorization code is presented directly to the user directly so they can copy/paste it. That way you can still implement the flow even if you can't redirect to some listener.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, to get a refresh token, you'll need to request "offline" access.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:50:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Net-Maui/m-p/769544#M33644</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-05-09T14:50:30Z</dc:date>
    </item>
  </channel>
</rss>

