mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Small fixes to TripIt and Dopplr support. Closes #60.
This commit is contained in:
parent
02c0f05af2
commit
d8f16f09ff
4 changed files with 5 additions and 4 deletions
|
@ -58,7 +58,8 @@ module OmniAuth
|
||||||
'oauth2' => 'OAuth2',
|
'oauth2' => 'OAuth2',
|
||||||
'openid' => 'OpenID',
|
'openid' => 'OpenID',
|
||||||
'open_id' => 'OpenID',
|
'open_id' => 'OpenID',
|
||||||
'github' => 'GitHub'
|
'github' => 'GitHub',
|
||||||
|
'tripit' => 'TripIt'
|
||||||
}
|
}
|
||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
|
@ -13,7 +13,7 @@ module OmniAuth
|
||||||
autoload :Foursquare, 'omniauth/strategies/foursquare'
|
autoload :Foursquare, 'omniauth/strategies/foursquare'
|
||||||
autoload :Gowalla, 'omniauth/strategies/gowalla'
|
autoload :Gowalla, 'omniauth/strategies/gowalla'
|
||||||
autoload :Identica, 'omniauth/strategies/identica'
|
autoload :Identica, 'omniauth/strategies/identica'
|
||||||
autoload :Tripit, 'omniauth/strategies/tripit'
|
autoload :TripIt, 'omniauth/strategies/trip_it'
|
||||||
autoload :Dopplr, 'omniauth/strategies/dopplr'
|
autoload :Dopplr, 'omniauth/strategies/dopplr'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,7 +7,7 @@ module OmniAuth
|
||||||
# basic user information.
|
# basic user information.
|
||||||
#
|
#
|
||||||
# @example Basic Usage
|
# @example Basic Usage
|
||||||
# use OmniAuth::Strategies::Facebook, 'app_id', 'app_secret'
|
# use OmniAuth::Strategies::Facebook, 'app_id', 'app_secret'
|
||||||
class Facebook < OAuth2
|
class Facebook < OAuth2
|
||||||
# @param [Rack Application] app standard middleware application parameter
|
# @param [Rack Application] app standard middleware application parameter
|
||||||
# @param [String] app_id the application id as [registered on Facebook](http://www.facebook.com/developers/)
|
# @param [String] app_id the application id as [registered on Facebook](http://www.facebook.com/developers/)
|
||||||
|
|
|
@ -9,7 +9,7 @@ module OmniAuth
|
||||||
#
|
#
|
||||||
# use OmniAuth::Strategies::TripIt, 'consumerkey', 'consumersecret'
|
# use OmniAuth::Strategies::TripIt, 'consumerkey', 'consumersecret'
|
||||||
#
|
#
|
||||||
class Tripit < OmniAuth::Strategies::OAuth
|
class TripIt < OmniAuth::Strategies::OAuth
|
||||||
def initialize(app, consumer_key, consumer_secret)
|
def initialize(app, consumer_key, consumer_secret)
|
||||||
super(app, :tripit, consumer_key, consumer_secret,
|
super(app, :tripit, consumer_key, consumer_secret,
|
||||||
:site => 'https://api.tripit.com',
|
:site => 'https://api.tripit.com',
|
Loading…
Reference in a new issue