Sha256: 5edd284ad735d4be6b020b5718f79e0a4d2d038b7f8a5e1dfbbfa41f96a84762

Contents?: true

Size: 427 Bytes

Versions: 50

Compression:

Stored size: 427 Bytes

Contents

module FbGraph2
  module RequestFilter
    class Authenticator < Rack::OAuth2::AccessToken::Authenticator
      def initialize(access_token)
        _access_token_ = case access_token
        when Rack::OAuth2::AccessToken
          access_token
        else
          Rack::OAuth2::AccessToken::Bearer.new(
            access_token: access_token
          )
        end
        super _access_token_
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-1.2.0 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-1.1.1 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-1.1.0 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-1.0.1 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-1.0.0 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.9.1 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.9.0 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.8.0 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.9 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.8 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.7 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.6 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.5 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.4 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.3 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.2 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.1 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.7.0 lib/fb_graph2/request_filter/authenticator.rb
fb_graph2-0.6.2 lib/fb_graph2/request_filter/authenticator.rb