Class: OmniAuth::Strategies::ZoomV2
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::ZoomV2
- Defined in:
- lib/omniauth/strategies/zoom_v2.rb
Constant Summary collapse
- USER_INFO_URL =
'https://api.zoom.us/v2/users/me'
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'lib/omniauth/strategies/zoom_v2.rb', line 60 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
56 57 58 |
# File 'lib/omniauth/strategies/zoom_v2.rb', line 56 def callback_url [:redirect_uri] || (full_host + callback_path) end |
#raw_info ⇒ Object
52 53 54 |
# File 'lib/omniauth/strategies/zoom_v2.rb', line 52 def raw_info @raw_info ||= access_token.get(USER_INFO_URL).parsed end |