<?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: Dropnbox for Moodle in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469785#M1578</link>
    <description>&lt;P&gt;Could you share the full URL of the page showing that "Error (400)" so we can check on this for you? Feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; if you'd prefer to share privately.&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 21:58:18 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-11-13T21:58:18Z</dc:date>
    <item>
      <title>Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469782#M1577</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Moodle platform for online teaching. I was trying to connect my Dropbox account to my Moodle website. Everything was normal during the process. I put both API &amp;amp; Secret Key from dropbox into my moodle, and put&amp;nbsp;&lt;SPAN&gt;OAuth 2 Redirect URI into dropbox and everything was fine. Since the permission type is Scope App I have checked every boxes in permission section. now when I check dropbox in my moodle for like uploading a file, I need to login to my dropbox from moodle, this is where I get an error. Error 400 saying that "No scope requested can be granted for this app.". Would you please help me? thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="000.JPG" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/18964i28B230398F54AC46/image-size/large?v=v2&amp;amp;px=999" role="button" title="000.JPG" alt="000.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My Moodle Setting" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/18965iD40731B2D0926098/image-size/large?v=v2&amp;amp;px=999" role="button" title="001.JPG" alt="My Moodle Setting" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;My Moodle Setting&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="002.JPG" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/18966i46476E3243865463/image-size/large?v=v2&amp;amp;px=999" role="button" title="002.JPG" alt="002.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="003.JPG" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/18967i1B0B7CE44FEF5A02/image-size/large?v=v2&amp;amp;px=999" role="button" title="003.JPG" alt="003.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 18:05:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469782#M1577</guid>
      <dc:creator>Freddy shaddy</dc:creator>
      <dc:date>2020-11-16T18:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469785#M1578</link>
      <description>&lt;P&gt;Could you share the full URL of the page showing that "Error (400)" so we can check on this for you? Feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; if you'd prefer to share privately.&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 21:58:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469785#M1578</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-13T21:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469797#M1579</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=yqybwykfs2msgmm&amp;amp;response_type=code&amp;amp;redirect_uri=https%3A%2F%2Flms1.daysch.ir%2Fmoodle%2Fadmin%2Foauth2callback.php&amp;amp;state=%2Frepository%2Frepository_callback.php%3Fcallback%3Dyes%26repo_id%3D10%26sesskey%3D7wH1u5A1dI&amp;amp;scope" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?client_id=yqybwykfs2msgmm&amp;amp;response_type=code&amp;amp;redirect_uri=https%3A%2F%2Flms1.daysch.ir%2Fmoodle%2Fadmin%2Foauth2callback.php&amp;amp;state=%2Frepository%2Frepository_callback.php%3Fcallback%3Dyes%26repo_id%3D10%26sesskey%3D7wH1u5A1dI&amp;amp;scope&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 22:41:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469797#M1579</guid>
      <dc:creator>Freddy shaddy</dc:creator>
      <dc:date>2020-11-13T22:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469929#M1580</link>
      <description>&lt;P&gt;Thanks! That's helpful. While your app is registered for all scopes, that authorization URL includes the "scope" parameter but doesn't actually specify any scopes to use, leading to that error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The app should specify just the scopes it needs on that authorization URL. You may want to check with the developer of the app to see why it isn't doing that, or have them update it to set that properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To work around this though, if you just want to authorize all of the scopes you enabled for the app, you can do so by removing the "&amp;amp;scope" from the end of the URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We do&amp;nbsp;recommend only enabling and authorizing the specific scope(s) needed for the app though. And, if you're not a Dropbox Business admin and don't want to connect an entire team, you'll also want to disable any "team" scopes you enabled for the app first.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 16:15:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/469929#M1580</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-14T16:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470536#M1582</link>
      <description>&lt;P&gt;Dear Greg&lt;/P&gt;&lt;P&gt;Thank you for your reply. I worked but there are still some difficulties. I was wondering if there is also a solution for that.&lt;/P&gt;&lt;P&gt;when I get the Error 400, I have to copy and paste the link into a new tab because the Error's tab does not allow me to change the URL. So I have to copy &amp;amp; paste the URL into a new tab then I can sign in and access my files. Furthure more, I have to do this everytime I need to use my dropbox via moodle app :))) and it time consuming and really a pain.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 23:23:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470536#M1582</guid>
      <dc:creator>Freddy shaddy</dc:creator>
      <dc:date>2020-11-16T23:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470550#M1583</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1373721"&gt;@Freddy shaddy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Where are you generating these URLs? You shouldn't change already generated URL by hand, but have to correct the code in a way the "scopes" field doesn't participate anymore.&lt;/P&gt;&lt;P&gt;Hope this adds clarity to &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; description.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 00:30:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470550#M1583</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-11-17T00:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470739#M1586</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1373721"&gt;@Freddy shaddy&lt;/a&gt;&amp;nbsp;Здравко is correct, this should ideally corrected in the third party app's code itself. If you're not the developer of the app, you may want to reach out to them to request they update the app accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 16:09:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470739#M1586</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-17T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470880#M1589</link>
      <description>&lt;P&gt;thank both of you, unfortunatelly I don't have any experience in app development related stuff. I'm not sure if I know someone who is an expert in this field. the app that I use is moodle, it is a web base learning environment. it works on wamp. do you have any information about moodle?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 23:31:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470880#M1589</guid>
      <dc:creator>Freddy shaddy</dc:creator>
      <dc:date>2020-11-17T23:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470966#M1591</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1373721"&gt;@Freddy shaddy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I just take a look on Moodle and there is an application specific Dropbox client; the official Dropbox php SDK isn't used. In the client is missing initialization of the 'scope' field in the class' constructor. That's the bug. 🧐&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; You can fix it yourself.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: A bit more help info for you.&lt;/P&gt;&lt;P&gt;Take a look in the "dropbox" class constructor &lt;A title="Dropbox V2 API - Moodle's constructor implementation" href="https://github.com/moodle/moodle/blob/master/repository/dropbox/classes/dropbox.php#L49" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and find out equivalent place in your install. After that, expand the line:&lt;/P&gt;&lt;PRE&gt;    parent::__construct($key, $secret, $callback, '');&lt;/PRE&gt;&lt;P&gt;... to something like:&lt;/P&gt;&lt;PRE&gt;    parent::__construct($key, $secret, $callback, 'account_info.read account_info.write files.metadata.read files.metadata.write files.content.write files.content.read sharing.read sharing.write file_requests.read file_requests.write contacts.write');&lt;/PRE&gt;&lt;P&gt;The only change is the last constructor argument - the scope. You can tune it in addition according your preferences and &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; advices. I have just put an example value according the visible part of your settings posted.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:14:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/470966#M1591</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-11-18T15:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dropnbox for Moodle</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/471073#M1592</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1373721"&gt;@Freddy shaddy&lt;/a&gt;&amp;nbsp;If you are not able to make the modification required, you'll need to reach out to the developers of Moodle for help.&amp;nbsp;Dropbox can't offer help configuring and using Moodle itself, as it's made by a third party.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:11:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/m-p/471073#M1592</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-18T15:11:45Z</dc:date>
    </item>
  </channel>
</rss>

