This module navigates through a series of API calls answering each challenge request.
The module uses Guzzle 5.0 for API calls and conversion of XML and JSON responses. For responses that are returned in YAML, the symfony/yaml package is used. Although this module utilizes packages, this module is overall lightweight due to auto-loading of the classes.
-
Add the following to the settings.php file.
This will create the vendor and composer.json one directory above the Drupal installation root. Placing at the Drupal root will throw an alert in running the Security Audit module.
Change to
./vs.../to place composer.json in Drupal installation.$conf['composer_manager_vendor_dir'] = '../vendor'; $conf['composer_manager_file_dir'] = '../'; $conf['challenge_auth_token'] = '{your auth token}'; -
Copy
composer.json.inctocomposer.jsonone directory above Drupal root.If
composer.jsonalready exists, run the following where located:composer require guzzlehttp/guzzle:5.x composer require symfony/yaml -
Run
composer installwherecomposer.jsonis located. -
Download and enable
composer_managercontrib module. -
At command prompt, run
drush composer-json-rebuildat Drupal root. -
Download and enable this module to
/sites/all/modules/custom/challenge/directory. -
Navigate to
http://{domain}/challenge