class OmniAuth::Strategies::Zoom
OmniAuth
strategy for zoom.us
Public Instance Methods
token_params()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/zoom.rb, line 17 def token_params params = super params[:headers] ||= {} params[:headers][:Authorization] = format('Basic %s', Base64.strict_encode64("#{client.id}:#{client.secret}")) params end
Private Instance Methods
callback_url()
click to toggle source
# File lib/omniauth/strategies/zoom.rb, line 38 def callback_url full_host + callback_path end
raw_info()
click to toggle source
# File lib/omniauth/strategies/zoom.rb, line 26 def raw_info return @raw_info if defined?(@raw_info) @raw_info = access_token.get('/v2/users/me').parsed || {} rescue ::OAuth2::Error => e raise e unless e.response.status == 400 # in case of missing a scope for reading current user info log(:error, "#{e.class} occured. message:#{e.message}") @raw_info = {} end