Sha256: 11a370235afa20585323c27af4ab15b50fb2687ba1c44e4d251b710a4c4b4d50

Contents?: true

Size: 756 Bytes

Versions: 10

Compression:

Stored size: 756 Bytes

Contents

require 'omniauth/oauth'

module OmniAuth
  module Strategies
    #
    # Authenticate to TripIt via OAuth and retrieve an access token for API usage
    #
    # Usage:
    #
    #    use OmniAuth::Strategies::TripIt, 'consumerkey', 'consumersecret'
    #
    class TripIt < OmniAuth::Strategies::OAuth
      def initialize(app, consumer_key = nil, consumer_secret = nil, options = {}, &block)
        super(app, :tripit, consumer_key, consumer_secret,
                {:site => 'https://api.tripit.com',
                :request_token_path => "/oauth/request_token",
                :access_token_path  => "/oauth/access_token",
                :authorize_url     => "https://www.tripit.com/oauth/authorize"}, options, &block)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
omniauth-0.2.6 oa-oauth/lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.6 lib/omniauth/strategies/trip_it.rb
omniauth-0.2.5 oa-oauth/lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.5 lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.4 lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.3 lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.2 lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.1 lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.0 lib/omniauth/strategies/trip_it.rb
oa-oauth-0.2.0.beta5 lib/omniauth/strategies/trip_it.rb