Class: OmniAuth::Strategies::Zoom
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Zoom
- Defined in:
- lib/omniauth/strategies/zoom.rb
Constant Summary collapse
- USER_INFO_URL =
'https://api.zoom.us/v2/users/me'
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
58 59 60 61 62 63 64 65 66 |
# File 'lib/omniauth/strategies/zoom.rb', line 58 def super.tap do |params| [:authorize_options].each do |key| params[key] = request.params[key.to_s] unless empty?(request.params[key.to_s]) end params[:response_type] = 'code' session['omniauth.state'] = params[:state] unless empty?(params[:state]) end end |
#callback_url ⇒ Object
54 55 56 |
# File 'lib/omniauth/strategies/zoom.rb', line 54 def callback_url [:redirect_uri] || (full_host + callback_path) end |
#raw_info ⇒ Object
50 51 52 |
# File 'lib/omniauth/strategies/zoom.rb', line 50 def raw_info @raw_info ||= access_token.get(USER_INFO_URL).parsed end |