<?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: What function in .NET SDK is for /oauth2/token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668548#M30262</link>
    <description>&lt;P&gt;Hi again &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1627076"&gt;@Esikhoob&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I see what you mean. Dropbox .NET SDK unfortunately is not designed in a way to be possible such things. The fields you're interested in are hidden/private. So no, you cannot use the provided SDK as is, but you can use the sources as a template and re-implement it (with some slight changes - expose needed access token with some method for instance) so you can get access token after you make sure it's actual (using the &lt;A title="" href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Dropbox.Api/DropboxRequestHandler.cs#L640" target="_blank" rel="noopener"&gt;proper method&lt;/A&gt;). You don't need a client object if you don't plane make regular API calls server side. The only object you need, in such a case, is DropboxRequestHandler class instance (after the class modification or another derived class declaration). &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;Hope this gives direction.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 13:28:11 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-03-16T13:28:11Z</dc:date>
    <item>
      <title>What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668164#M30239</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;In our Website, written with ASP.NET and C#, we want to use .NET API in&amp;nbsp;&lt;EM&gt;offline&amp;nbsp;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;access &lt;/EM&gt;manner. So I think we&lt;/SPAN&gt;&amp;nbsp;need to get access token by using refresh token. I read the documentation and find out we had to call&amp;nbsp; &lt;EM&gt;/oauth2/token&lt;/EM&gt; for that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use Dropbox`s .NET SDK, but it`s documentation is missing. My question is: what function should I call in .NET SDK to achive same functionlity as calling /oauth2/token.&lt;/P&gt;
&lt;P&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 19:45:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668164#M30239</guid>
      <dc:creator>Esikhoob</dc:creator>
      <dc:date>2023-03-16T19:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668187#M30245</link>
      <description>&lt;P&gt;The SDK does it for you. You don't need to do anything explicitly.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 13:26:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668187#M30245</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-15T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668197#M30247</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1627076"&gt;@Esikhoob&lt;/a&gt; As Здравко said, the .NET SDK will handle this /oauth2/token request for you. It will automatically use the refresh token to get a new access token whenever needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.html" target="_blank"&gt;the documentation for the .NET SDK here&lt;/A&gt;, and &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OauthBasic/Program.cs" target="_blank"&gt;example code for the authorization flow here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 13:55:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668197#M30247</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-15T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668450#M30258</link>
      <description>&lt;P&gt;I think, you mean&amp;nbsp; DropboxClient class instance will do this job.&lt;/P&gt;&lt;P&gt;I had to explain our goal more: We are adding Dropbox upload capability to our ASP.NET website. As a matter of fact, I have used java script SDK for achieving our goals , but&amp;nbsp; I think I should not put&amp;nbsp; app key or secret in java script, which will observable to all users.&lt;/P&gt;&lt;P&gt;so I think, we will generate access token in server side (aka .NET), and send that to java script side.&lt;/P&gt;&lt;P&gt;Is my assumption true? If yes, by reading the document I cannot find a way to get&lt;EM&gt; access token&lt;/EM&gt; out of .NET SDK DropboxClient. how can I get it?&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:30:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668450#M30258</guid>
      <dc:creator>Esikhoob</dc:creator>
      <dc:date>2023-03-16T09:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668548#M30262</link>
      <description>&lt;P&gt;Hi again &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1627076"&gt;@Esikhoob&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I see what you mean. Dropbox .NET SDK unfortunately is not designed in a way to be possible such things. The fields you're interested in are hidden/private. So no, you cannot use the provided SDK as is, but you can use the sources as a template and re-implement it (with some slight changes - expose needed access token with some method for instance) so you can get access token after you make sure it's actual (using the &lt;A title="" href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Dropbox.Api/DropboxRequestHandler.cs#L640" target="_blank" rel="noopener"&gt;proper method&lt;/A&gt;). You don't need a client object if you don't plane make regular API calls server side. The only object you need, in such a case, is DropboxRequestHandler class instance (after the class modification or another derived class declaration). &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;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 13:28:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668548#M30262</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-16T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668554#M30263</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1627076"&gt;@Esikhoob&lt;/a&gt; As it is best not to leak your app secret to users, you can instead use the "PKCE" app authorization flow with the JavaScript SDK itself. The PKCE flow is intended for client-side applications and does not require the use of the app secret. You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/pkce-browser/index.html" target="_blank"&gt;an example of using it with the JavaScript SDK here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 13:36:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/668554#M30263</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-16T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/673677#M30387</link>
      <description>&lt;P&gt;Thanks all for these helping answers.&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;I read PKCE documentation, but I don`t understand the purpose of eliminating &lt;EM&gt;app secret, &lt;/EM&gt;since others also can call the API without it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 05:39:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/673677#M30387</guid>
      <dc:creator>Esikhoob</dc:creator>
      <dc:date>2023-04-03T05:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: What function in .NET SDK is for /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/673861#M30396</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1627076"&gt;@Esikhoob&lt;/a&gt; PKCE is a feature of the OAuth 2 specification. For more information on it, in addition to our own &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank"&gt;authorization documentation&lt;/A&gt;, you may be interested in reading &lt;A href="https://oauth.net/2/pkce/" target="_blank"&gt;the OAuth 2 PKCE specification and resources&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 14:56:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-function-in-NET-SDK-is-for-oauth2-token/m-p/673861#M30396</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-03T14:56:22Z</dc:date>
    </item>
  </channel>
</rss>

