Ruby on rails 4 自定义omniauth客户端-身份验证失败!检测到csrf|u:OmniAuth::Strategies::OAuth2::CallbackError,检测到csrf|检测到csrf
试图创建一个定制的omniauth客户端来与api基础rails应用程序交互,提供商应用程序与Desive和doorkeeper集成在一起可以完美地工作 在尝试使用doorkeeper ui授权客户端应用程序时,我在控制台中遇到以下错误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 #
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令牌,通常在第一次交互时发出