Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 自定义omniauth客户端-身份验证失败!检测到csrf|u:OmniAuth::Strategies::OAuth2::CallbackError,检测到csrf|检测到csrf_Ruby On Rails 4_Oauth 2.0_Omniauth_Doorkeeper - Fatal编程技术网

Ruby on rails 4 自定义omniauth客户端-身份验证失败!检测到csrf|u:OmniAuth::Strategies::OAuth2::CallbackError,检测到csrf|检测到csrf

Ruby on rails 4 自定义omniauth客户端-身份验证失败!检测到csrf|u:OmniAuth::Strategies::OAuth2::CallbackError,检测到csrf|检测到csrf,ruby-on-rails-4,oauth-2.0,omniauth,doorkeeper,Ruby On Rails 4,Oauth 2.0,Omniauth,Doorkeeper,试图创建一个定制的omniauth客户端来与api基础rails应用程序交互,提供商应用程序与Desive和doorkeeper集成在一起可以完美地工作 在尝试使用doorkeeper ui授权客户端应用程序时,我在控制台中遇到以下错误 I, [2017-01-17T15:37:31.760972 #13511] INFO -- omniauth: (api_provider) Callback phase initiated. E, [2017-01-17T15:37:31.767541 #

试图创建一个定制的omniauth客户端来与api基础rails应用程序交互,提供商应用程序与Desive和doorkeeper集成在一起可以完美地工作 在尝试使用doorkeeper ui授权客户端应用程序时,我在控制台中遇到以下错误

I, [2017-01-17T15:37:31.760972 #13511]  INFO -- omniauth: (api_provider) Callback phase initiated.
E, [2017-01-17T15:37:31.767541 #13511] ERROR -- omniauth: (api_provider) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected
E, [2017-01-17T15:37:31.767730 #13511] ERROR -- omniauth: (api_provider) Authentication failure! invalid_credentials: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected

-源代码看起来您正试图发出外部请求,并检查
真实性\u令牌
跳过oauth操作的CSRF验证,操作前跳过:验证真实性\u令牌,通常在第一次交互时发出