Class: OmniAuth::Strategies::Proz
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Proz
- Defined in:
- lib/omniauth/strategies/proz.rb
Constant Summary collapse
- DEFAULT_SCOPE =
'user.email wiwo.post media.post'
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/omniauth/strategies/proz.rb', line 45 def super.tap do |params| %w[scope].each do |v| if request.params[v] params[v.to_sym] = request.params[v] end end params[:scope] ||= DEFAULT_SCOPE end end |
#raw_info ⇒ Object
41 42 43 |
# File 'lib/omniauth/strategies/proz.rb', line 41 def raw_info @raw_info ||= access_token.get('https://api.proz.com/v2/user').parsed end |