Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
erudinsky opened this issue Jan 26, 2016 · 2 comments

Comments

@erudinsky
Copy link

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..

@erroric
Copy link

erroric commented Jun 3, 2016

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

@NinjaValerok
Copy link

NinjaValerok commented Jun 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants