获取用户信息

dev_SaaS
guange 6 years ago
parent 5a3e818836
commit e5252fa87e

@ -101,6 +101,9 @@ class EcloudController < ApplicationController
def ecloud_login_callback def ecloud_login_callback
#获取code #获取code
logger.info "oauth2 login_callback: #{params}" logger.info "oauth2 login_callback: #{params}"
raise "没有code" unless params[:code]
url = "#{SERVER_URL}/oauth2/authorization?grant_type=authorization_code" + url = "#{SERVER_URL}/oauth2/authorization?grant_type=authorization_code" +
"&client_id=#{CLIENT_ID}&scope=&redirect_uri=&code=#{params[:code]}" "&client_id=#{CLIENT_ID}&scope=&redirect_uri=&code=#{params[:code]}"

Loading…
Cancel
Save