Class: OmniAuth::Strategies::Singly
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Singly
- Defined in:
- lib/omniauth/strategies/singly.rb
Constant Summary collapse
- PASSTHROUGHS =
%w[ access_token account scope service ]
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/omniauth/strategies/singly.rb', line 21 def super.tap do |params| PASSTHROUGHS.each do |p| params[p.to_sym] = request.params[p] if request.params[p] end end end |
#raw_info ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/omniauth/strategies/singly.rb', line 35 def raw_info @raw_info ||= begin access_token.[:mode] = :query access_token.[:param_name] = :access_token access_token.get("/profiles").parsed end end |