Class: OmniAuth::Strategies::Participa
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Participa
- Defined in:
- lib/omniauth/strategies/participa.rb
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/omniauth/strategies/participa.rb', line 18 def super.tap do |params| [:authorize_options].each do |k| params[k] = request.params[k.to_s] unless [nil, ''].include?(request.params[k.to_s]) end params[:scope] = params[:scope].split(' ').map {|item| item.split(',')}.flatten.join(' ') end end |
#callback_url ⇒ Object
49 50 51 |
# File 'lib/omniauth/strategies/participa.rb', line 49 def callback_url [:redirect_uri] || (full_host + script_name + callback_path) end |
#raw_info ⇒ Object
43 44 45 |
# File 'lib/omniauth/strategies/participa.rb', line 43 def raw_info @raw_info ||= access_token.get([:client_options][:endpoint_url]).parsed end |