Class: OmniAuth::Strategies::Dropbox

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/dropbox.rb

Overview

OmniAuth strategy for Dropbox OAuth2.

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



51
52
53
54
55
# File 'lib/omniauth/strategies/dropbox.rb', line 51

def callback_url
  return "" if @authorization_code_from_signed_request

  options[:callback_url] || super
end

#query_stringObject



57
58
59
60
61
# File 'lib/omniauth/strategies/dropbox.rb', line 57

def query_string
  return "" if request.params["code"]

  super
end

#raw_infoObject



47
48
49
# File 'lib/omniauth/strategies/dropbox.rb', line 47

def raw_info
  @raw_info ||= access_token.post("users/get_current_account", body: "null").parsed
end