-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Dropbox and GDrive
How to make Dropbox and Google Drive work on your server?
- Go to Dropbox Developers: https://www.dropbox.com/developers
- Create your app
- Choose Dropbox API, not business API, and the desired Dropbox access
- Setup URLs (the redirect uri is
https://<your host>/oauth-result/dropbox.html
)
- Add Dropbox app key to KeeWeb, either as
dropboxAppKey
config field, or in the UI - Click Show secret and add it to KeeWeb in the same way, the config field is called
dropboxSecret
- If it doesn't work, make sure that PKCE is enabled and custom scopes are configured on the Permissions tab
- To add a file from Dropbox folder using config.json, use the following snippet:
{ "settings": { "dropboxAppKey": "APP_KEY_FROM_DROPBOX", "dropboxSecret": "APP_SECRET_FROM_DROPBOX" }, "files": [{ "storage": "dropbox", "name": "Your file name", "path": "/your_file.kdbx" }] }
-
Go to Google Developer Console: https://console.developers.google.com/
-
Add a project
-
Create OAuth Client ID
-
Choose Web application
-
Setup URLs (the redirect uri is
https://<your host>/oauth-result/gdrive.html
)
URL here is the exact URL where you load KeeWeb: if it has index.html, add index.html there too.
-
Set Client ID and Secret in KeeWeb, in
gdriveClientId
andgdriveClientSecret
fields of your config -
You will need to either verify your domain, or add yourself to Risky Access Permissions By Unreviewed Apps Google Group (more about Google Drive in this issue).
-
Enable Drive API for your project.
- Create an app in Azure Portal:
![Azure Portal](https://user-images.githubusercontent.com/633557/117539118-7049a180-b009-11eb-8a82-763d0c713d94.png)
- Choose the desired audience and name, and click Register:
![App name](https://user-images.githubusercontent.com/633557/117539144-9a9b5f00-b009-11eb-848c-1999c0d66f30.png)
- Select Authentication and click Add Platform:
![Platform](https://user-images.githubusercontent.com/633557/117539221-f960d880-b009-11eb-9602-e7c8132901ca.png)
-
Choose "Single-page application"
-
Enter a redirect URI as
https://your-domain/oauth-result/onedrive.html
:
![Domain](https://user-images.githubusercontent.com/633557/117539311-58265200-b00a-11eb-800e-8cf559ca5054.png)
-
Click Configure
-
Add the following API permissions:
Files.Read.All
andFiles.ReadWrite.All
fromMicrosoft Graph
section:
![Permissions](https://user-images.githubusercontent.com/633557/117539562-88babb80-b00b-11eb-9b75-b4f38b8ccc68.png)
- Make sure the permission screen looks like this:
![API permissions](https://user-images.githubusercontent.com/633557/117539622-ca4b6680-b00b-11eb-9a64-5b32ecb7a217.png)
-
Copy the
Application (client) ID
value from the Overview screen and put it in KeeWeb'sconfig.json
underonedriveClientId
key -
If desired, your can also set up the secret in "Certificates and secrets" section and save it as
onedriveClientSecret
, but it doesn't seem to change anything
The only official web app is https://app.keeweb.info