omniauth-vkontakte icon indicating copy to clipboard operation
omniauth-vkontakte copied to clipboard

ERROR -- omniauth: (vkontakte) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected

Open erudinsky opened this issue 9 years ago • 2 comments

Guys!

I am trying to get user signed in with vkontakte using openapi as written here https://vk.com/dev/Javascript_SDK with omnioauthcallbackcontroller what gives me error ERROR -- omniauth: (vkontakte) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected on callback.

Can you shed some light on what am I doing wrong? Same approach with FB and others work..

erudinsky avatar Jan 26 '16 20:01 erudinsky

You must append :provider_ignores_state => true key to the confiruration config.omniauth :vkontakte

erroric avatar Jun 03 '16 20:06 erroric

when i append :provider_ignores_state => true, looks like that: config.omniauth :vkontakte, 'my_app_id', 'my_app_secret', scope: 'email', provider_ignores_state: true I began to get an error - 'Invalid credentials'. By clicking on the link is working

NinjaValerok avatar Jun 10 '17 20:06 NinjaValerok