Feeds OAuth provides a new Feeds fetcher plugin that performs OAuth or OAuth 2.0 authorization before requesting a feed.

Installation

Usage

  • Obtain standard OAuth information from host: consumer key, consumer secret, request token URL, access token URL, authorize URL.
  • Create a new Feeds importer and select the fetcher to be of type OAuthHTTPFetcher or OAuth2HTTPSFetcher.
  • In the fetcher settings, enter the OAuth information above, as well as a unique site identifier that represents the host (e.g., twitter).
  • When saved, the configuration screen will show you a callback URL: add it to the host's configuration for your Drupal site.
  • Associate the new importer with a content type.
  • When you create a new node of this content type, the form will warn you that you haven't received an authorization from the host. Click the link to do so and complete the authentication steps.
  • OAuth 2.0: you can also enter the scope argument that's sent during authorization, to request special permissions from the server.
  • You're now ready to create new feeds from your protected data!

Compatibility with other OAuth modules

Other modules, such as Twitter Signin, already provide OAuth authentication and store tokens in their own tables. Feeds OAuth must be able to retrieve the tokens stored by those third party modules. To do so, a new hook hook_feeds_oauth_authenticator is used. Here's the implementation for Twitter Signin:

<?php
function twitter_feeds_oauth_authenticator() {
  return array(
'twitter_get_tokens' => 'Twitter');
}

function
twitter_get_tokens($uid, $site_id) {
  return
db_fetch_array(db_query("SELECT oauth_token, oauth_token_secret FROM {twitter_account} WHERE uid = %d", $uid));
}
?>

Read more

You can find more articles about this module on my site.

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.0-beta2 tar.gz (9.04 KB) | zip (11.68 KB) 2010-Nov-14 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (11.8 KB) | zip (14.66 KB) 2013-Mar-29 Notes
6.x-1.x-dev tar.gz (8.91 KB) | zip (11.43 KB) 2011-Feb-25 Notes

Project Information


Maintainers for Feeds OAuth

  • infojunkie - 7 commits
    last: 9 weeks ago, first: 3 years ago
  • dsnopek - 1 commit
    last: 9 weeks ago, first: 9 weeks ago

Issues for Feeds OAuth

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants