-
-
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
dropboxAppKeyconfig 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
gdriveClientIdandgdriveClientSecretfields 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:
- Choose the desired audience and name, and click Register:
- Select Authentication and click Add Platform:
-
Choose "Single-page application"
-
Enter a redirect URI as
https://your-domain/oauth-result/onedrive.html:
-
Click Configure
-
Add the following API permissions:
Files.Read.AllandFiles.ReadWrite.AllfromMicrosoft Graphsection:
- Make sure the permission screen looks like this:
-
Copy the
Application (client) IDvalue from the Overview screen and put it in KeeWeb'sconfig.jsonunderonedriveClientIdkey -
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