【发布时间】:2011-08-30 21:37:19
【问题描述】:
我正在实施一种策略,以连接到使用 oauth-plugin 实施的 OAuth 提供程序。在“request_phase”函数中,我写道:
def request_phase
options[:response_type] = 'token
super
end
但是在发送的HTTP请求中,却有“...&response_type=code” 我按照其他示例在 request_phase 中设置 response_type,例如使用 SalesForce 策略进行演示: https://github.com/quintonwall/omniauth-rails3-forcedotcom/wiki/Build-Mobile-Apps-in-the-Cloud-with-Omniauth,-Httparty-and-Force.com
请告知如何更改 response_type。
谢谢 拉米
【问题讨论】:
标签: ruby-on-rails ruby omniauth oauth-2.0