Class: OmniAuth::Strategies::TranslationExchange

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



86
87
88
89
90
91
# File 'lib/omniauth/strategies/translation_exchange.rb', line 86

def authorize_params
  super.tap do |params|
    params.merge!(:display => request.params['display']) if request.params['display']
    params.merge!(:state => request.params['state']) if request.params['state']
  end
end

#callback_urlObject

fix for the 1.4 and doorkeeper



82
83
84
# File 'lib/omniauth/strategies/translation_exchange.rb', line 82

def callback_url
  full_host + script_name + callback_path
end

#raw_infoObject



77
78
79
# File 'lib/omniauth/strategies/translation_exchange.rb', line 77

def raw_info
  @raw_info ||= access_token.get('/v2/users/me').parsed
end