我正在实施一种策略,以连接到使用oauth-plugin实现的OAuth提供程序。在“request_phase”功能,我写道:Omniauth:无法将策略中的“令牌”的response_type更改为
def request_phase
options[:response_type] = 'token
super
end
但在发送的HTTP请求时,它具有“...... & RESPONSE_TYPE =代码” 我跟着其他实施例以设置在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。
感谢 拉米