Module: Rack::OAuth2::Util::ComcactHashWithBrankRedirect

Included in:
Rack::OAuth2::Util
Defined in:
lib/patch/rack/oauth2/util.rb

Instance Method Summary collapse

Instance Method Details

#compact_hash(hash) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/patch/rack/oauth2/util.rb', line 6

def compact_hash(hash)
  original_redirect_uri = hash[:redirect_uri]
  result = super
  if original_redirect_uri
    result[:redirect_uri] ||= original_redirect_uri
  end
  result
end