自定义omniauth客户端 - 身份验证失败! csrf_detected:OmniAuth :: Strategies :: OAuth2 :: CallbackError,csrf_detected | CSRF检测到

时间:2017-01-17 10:24:02

标签: ruby-on-rails-4 oauth-2.0 omniauth doorkeeper

尝试创建自定义omniauth客户端以与api base rails app进行交互,提供商应用程序与设计和门卫集成ApiProvider app完美配合 试图使用门卫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

csrf_detected | CSRF detected

0 个答案:

没有答案