OAuth :: RequestProxy :: UnknownRequestType(ActionDispatch :: Request):IMS :: LTI :: ToolProvider出错

时间:2016-07-14 02:39:19

标签: ruby-on-rails oauth

我最近更新了rails app 4到5版。

然后IMS :: LTI :: ToolProvider无法正常工作。

以下是代码:

private_key = res[:body]["private_key"]
provider = IMS::LTI::ToolProvider.new(public_key, private_key, params.to_unsafe_h)
unless provider.valid_request?(request)
  if provider.context_student? || provider.institution_student?
    return render :participant_wait_for_activity
  else
    return render :invalid_key
  end
end

provider.valid_request?(request)执行时出错。

这是错误: OAuth :: RequestProxy :: UnknownRequestType(ActionDispatch :: Request):

0 个答案:

没有答案