Class: OmniAuth::Strategies::Dingtalk

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/dingtalk.rb

Instance Method Summary collapse

Instance Method Details

#request_phaseObject



39
40
41
42
43
# File 'lib/omniauth/strategies/dingtalk.rb', line 39

def request_phase
  params = client.auth_code.authorize_params.merge(redirect_uri: callback_url).merge(authorize_params)
  params['appid'] = params.delete('client_id')
  redirect client.authorize_url(params)
end