Sha256: 11a3c5b931e65c4ab3ec094f374861f43fe7d8cf434fe80861c554244808a985

Contents?: true

Size: 686 Bytes

Versions: 2

Compression:

Stored size: 686 Bytes

Contents

require 'omniauth/oauth'

module OmniAuth
  module Strategies
    #
    # Authenticate to Dopplr via OAuth and retrieve an access token for API usage
    #
    # Usage:
    #
    #    use OmniAuth::Strategies::Dopplr, 'consumerkey', 'consumersecret'
    #
    class Dopplr < OmniAuth::Strategies::OAuth
      def initialize(app, consumer_key, consumer_secret)
        super(app, :dopplr, consumer_key, consumer_secret,
                :site => 'https://www.dopplr.com',
                :request_token_path => "/oauth/request_token",
                :access_token_path  => "/oauth/access_token",
                :authorize_path    => "/oauth/authorize")
      end     
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oa-oauth-0.1.6 lib/omniauth/strategies/dopplr.rb
oa-oauth-0.1.5 lib/omniauth/strategies/dopplr.rb