This workaround was devised in the legacy plugin to allow you to use your own, Google provided OAuth 2.0 client credentials. With the prior, Google unverified plugin there were legitimate reasons for doing this:

  • If you don’t share the credentials with anyone, then no non-mechanical third party can use them - they are a secret between you, Google, and the KeePass program running on your PC.
  • Though well protected, and only useful with your expressed permission, the built-in credentials could be compromised by unintended neglect or nefarious means, and used to spoof the plugin’s request for authorization.
  • OAuth 2.0, and Internet protocols in general, are never impervious to attack by determined third parties. Some users may find some (likely displaced) solace by supplying, their own “personal” OAuth 2.0 credentials.

To transparently support users of the legacy plugin there is a very valid reason for doing this:

  • KeePass Google Sync 3.0 plugin was not verified by Google, and so it has exceeded its validation limits.

If you have OAuth 2.0 client credentials in the form of a client_id and client_secret, you can configure the plugin to use these to authorize plugin commands with the current database by entering them in the appropriate text boxes of the Sync Authorization tab of the Configuration dialog. Ensure that the Enable Legacy OAuth 2.0 Credentials check box is checked, and the Use KeePass Google Sync 3.0 App Credentials checkbox is unchecked to enable the text boxes.

Entering personal OAuth 2.0 credentials

If you wish, you may also enter the credentials in the similar text boxes of the Options and Defaults tab. In this configuration, the plugin will use the supplied credentials in all new databases.


Obtaining Personal OAuth 2.0 Credentials

Google currently allows any user to obtain OAuth 2.0 client credentials for access to its Drive and other APIs. The process for doing so is designed for developer use, and it changes periodically.

Google could discontinue access to personal OAuth 2.0 credentials in the future. But as of this writing, the procedure generally it goes like this:

  1. Log on to the Google Cloud API Console.
  2. Use the “Create a Project” link to create a space for your credentials.
    Name it something and click CREATE.
  3. Click the “Credentials” link, then “CREATE CREDENTIALS”. A menu or screen appears. Select “OAuth client ID” or something similar.
  4. Click through various forms, including a configuration of the consent screen that Google will display when you use the credentials. This will help you identify the use of the credentials later.
  5. Again, click “Credentials”, then “CREATE CREDENTIALS”. You may have to enter yet more info, particularly “Application type”, which you should indicate as “other” or “native” (not “web” or “mobile”). Finally, click CREATE.
  6. A screen showing your new credentials (the text named “client ID” and “client secret”) should appear. Copy the credential somewhere safe (hi there KeePass!).

KeePass Sync for Google Drive™

Secure sync automation with Drive.