Class: OmniAuth::Strategies::TranslationExchange
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::TranslationExchange
- Defined in:
- lib/omniauth/strategies/translation_exchange.rb
Instance Method Summary collapse
- #authorize_params ⇒ Object
-
#callback_url ⇒ Object
fix for the 1.4 and doorkeeper.
- #raw_info ⇒ Object
Instance Method Details
#authorize_params ⇒ Object
86 87 88 89 90 91 |
# File 'lib/omniauth/strategies/translation_exchange.rb', line 86 def 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_url ⇒ Object
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_info ⇒ Object
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 |