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

Getting an error State token does not match expected value #86

Closed
aakashaggarwal opened this issue Aug 31, 2016 · 4 comments
Closed

Getting an error State token does not match expected value #86

aakashaggarwal opened this issue Aug 31, 2016 · 4 comments
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@aakashaggarwal
Copy link

aakashaggarwal commented Aug 31, 2016

I have integrated the google auth library and everything is working fine for a particular URL. But if I change the place from where the auth is called from keeping the redirect url same, I get an error saying State token does not match expected value

I have commented out the check for xsrf_token and session token which makes everything work but that isn't a solution I want to go with. Can anyone please help me solve this issue?

Thanks.

@aakashaggarwal aakashaggarwal changed the title Getting State token does not match expected value Getting an error State token does not match expected value Aug 31, 2016
pbibalan added a commit to pbibalan/google-auth-library-ruby that referenced this issue May 1, 2017
@mustela
Copy link

mustela commented Sep 5, 2017

Any update on this one? Having the same issue

@dazuma dazuma added the type: question Request for information or clarification. Not an issue. label Jun 5, 2018
@dazuma
Copy link
Member

dazuma commented Jun 5, 2018

Hi. Sorry for the long delay here. We're finally getting caught up on the issue backlog and will try to get to this shortly.

@TheRoyalTnetennba
Copy link
Contributor

TheRoyalTnetennba commented Aug 13, 2018

Having trouble reproducing this. What steps did you take while encountering this issue?

@khiav223577
Copy link

khiav223577 commented Nov 27, 2021

I encountered this problem on Rails 6.1.4 recently,
and finally resolved it by adding the following lines into config/application.rb:

# add back session and cookies middleware in order to use omniauth
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Session::CookieStore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants