Sha256: 1822fb1096d566fba935b4de8f2c390750868e03b237a2d8109a7f307e000de4

Contents?: true

Size: 470 Bytes

Versions: 90

Compression:

Stored size: 470 Bytes

Contents

# NOTE: Authorization code given via FB JS SDK needs blank string as redirect_uri
module Rack::OAuth2::Util
  class << self
    def compact_hash_with_blank_redirect_uri(hash)
      original_redirect_uri = hash[:redirect_uri]
      result = compact_hash_without_blank_redirect_uri hash
      if original_redirect_uri
        result[:redirect_uri] ||= original_redirect_uri
      end
      result
    end
    alias_method_chain :compact_hash, :blank_redirect_uri
  end
end

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
fb_graph-2.2.6 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.5 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.4 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.3 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.2 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.1 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.0 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.0.beta lib/patch/rack/oauth2/util.rb
fb_graph-2.2.0.alpha2 lib/patch/rack/oauth2/util.rb
fb_graph-2.2.0.alpha lib/patch/rack/oauth2/util.rb
fb_graph-2.1.13 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.12 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.11 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.10 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.9 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.8 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.7 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.6 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.5 lib/patch/rack/oauth2/util.rb
fb_graph-2.1.4 lib/patch/rack/oauth2/util.rb