Key Dropbox is an extension to the Key module.

This module provides a new key type for supporting authentication against the Dropbox service. This key will capture app key, app secret, and access token required for accessing the Dropbox.

Requirements

Requires the Key module:
https://www.drupal.org/project/key

Install

Install key_dropbox using a standard method for installing a contributed Drupal
module, either by downloading the package or using composer command below:

composer require drupal/key_dropbox

Usage

Follow the Key module documentation for getting and using keys.

Adding a key_select element to your form like below, in order to select your key.

You can apply a filter to select only dropbox_key related keys:

$form['dropbox_auth'] = [
  '#type' => 'key_select',
  '#title' => $this->t('Dropbox Auth'),
  '#key_filters' => ['type' => 'dropbox_key'],
];
Supporting organizations: 

Project information

Releases