Feeds HTTPFetcher AA settings page

This project is not covered by Drupal’s security advisory policy.

Installation

Installation is straightforward. All settings are on the Fetcher settings for your feed.

Overview

This module provides support for more advanced authentication mechanisms
using the Drupal Feeds module.

Features

Most notably, this can be used for feeds requiring a 2-step authentication
where the first request passes authentication credentials, and then the
server returns security tokens to be passed in future requests.

The credentials and return tokens to look for is configurable
in the Fetcher settings for your Feed. The communication protocol is also
configurable, 'plain' (&url=var) and json posting is supported currently.

Authentication methods:

  • Plain: Passes credentials through URL.
  • JSON: Performs a json_encode()'d post of the credentials.

Use Cases

  • Your feed requires a more advanced authentication mechanism than what Feeds' built-in HTTP Fetcher provides.
  • Your feed requires specific key|value pairs for authentication.
  • Your feed requires a JSON post of credentials to authenticate.
  • Your feed uses a 2-step authentication. You post credentials, it authenticates and returns security tokens which you then have to pass in subsequent calls.
  • You simply want to test HTTP Fetching on a secure address (https://) without a valid SSL (Enable test mode).
  • You want a working fallback from cURL when using a JSON authenticated feed. (Working drupal_http_request() using JSON post.)

Update: 2013-Mar-24

Added hook_feeds_httpfetcher_aa_after_fetch_alter().
Feeds & the standard HTTP Fetcher do not provide an after_fetch_alter hook, now we have one. One use case for creating this, was to set up an alternate batch control (for a paginated feed with a large result set).
Currently only in the -dev branch.
They say the longer the function_name, the greater the power.

Similar projects

It is recommended to use this along with the Feeds JSONPath Parser when using JSON returns.

Project information

Releases