config/initializers/oauth_consumers.rb in muck-oauth-0.1.3 vs config/initializers/oauth_consumers.rb in muck-oauth-0.1.4
- old
+ new
@@ -4,20 +4,30 @@
# eg. :twitter => TwitterToken, :hour_feed => HourFeedToken etc.
credentials = {}
credentials[:twitter] = { :key => GlobalConfig.twitter_oauth_key,
:secret => GlobalConfig.twitter_oauth_secret } if GlobalConfig.twitter_oauth_key
-credentials[:google] = { :scope => "https://mail.google.com/mail/feed/atom/", # see http://code.google.com/apis/gdata/faq.html#AuthScopes
+
+ # see http://code.google.com/apis/gdata/faq.html#AuthScopes
+credentials[:google] = { :scope => ["https://mail.google.com/mail/feed/atom/",
+ "https://www.google.com/calendar/feeds/",
+ "https://www.google.com/m8/feeds/",
+ "http://www-opensocial.googleusercontent.com/api/people"].join(' '),
:key => GlobalConfig.google_oauth_key,
:secret => GlobalConfig.google_oauth_secret } if GlobalConfig.google_oauth_key
+
credentials[:yahoo] = { :key => GlobalConfig.yahoo_oauth_key,
:secret => GlobalConfig.yahoo_oauth_secret } if GlobalConfig.yahoo_oauth_key
+
credentials[:flickr] = { :key => GlobalConfig.flickr_oauth_key,
:secret => GlobalConfig.flickr_oauth_secret } if GlobalConfig.flickr_oauth_key
+
credentials[:linkedin] = { :key => GlobalConfig.linkedin_oauth_key,
:secret => GlobalConfig.linkedin_oauth_secret } if GlobalConfig.linkedin_oauth_key
+
credentials[:fireeagle] = { :key => GlobalConfig.fireeagle_oauth_key,
:secret => GlobalConfig.fireeagle_oauth_secret } if GlobalConfig.fireeagle_oauth_key
+
credentials[:friendfeed] = { :key => GlobalConfig.friendfeed_oauth_key,
:secret => GlobalConfig.friendfeed_oauth_secret } if GlobalConfig.friendfeed_oauth_key
OAUTH_CREDENTIALS = credentials unless defined? OAUTH_CREDENTIALS
load 'oauth/models/consumers/service_loader.rb'
\ No newline at end of file