Skip to content

Commit a4139c8

Browse files
authored
Merge pull request #1274 from remotestorage/feature/1267-dropbox_refresh_tokens
Dropbox: Retrieves & uses refresh token to obtain new access token
2 parents 4506148 + 66e92c4 commit a4139c8

26 files changed

+9356
-4290
lines changed

.github/workflows/test-and-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Run jaribu tests # These must be replaced before we can use Node v18 in CI
2525
run: npm test
2626
- name: Run mocha tests
27-
run: npm run test:mocha
27+
run: npm run test:mocha -- --exit
2828
- name: Run linter
2929
run: npm run lint:quiet
3030
- name: Run webpack

doc/contributing/internals/discovery-bootstrap.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ the user to that URL. When the dance comes back, the library will detect
2828
the ``access_token`` from the window location during the page load, and
2929
from that point onwards, the remote is connected.
3030

31+
If the OAuth flow is PKCE, the window location will contain a ``code``
32+
parameter instead of ``access_token``. RS then makes a fetch to
33+
remote.TOKEN_URL with the code, to retrieve the access token, and possibly
34+
a refresh token as well.
35+
3136
.. _storage-first section: https://tools.ietf.org/html/draft-dejong-remotestorage-09#section-11

doc/getting-started/dropbox-and-google-drive.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,15 @@ Dropbox
3737
An app key can be obtained by `registering your app
3838
<https://www.dropbox.com/developers/apps>`_.
3939

40-
* Create a new app for the "Dropbox API", with "Full Dropbox access"
40+
* Create a new "scoped" app for the "Dropbox API", with these scopes:
41+
* account_info.read
42+
* files.metadata.read
43+
* files.metadata.write
44+
* files.content.read
45+
* files.content.write
4146
* You need to set one or more OAuth2 redirect URIs for all routes a user can
42-
connect from, for example ``http://localhost:8000/`` for an app you are
43-
developing locally.
47+
connect from, for example ``http://localhost:8000`` for an app you are
48+
developing locally. If the path is '/', rs.js drops it.
4449

4550
Known issues
4651
^^^^^^^^^^^^

0 commit comments

Comments
 (0)