Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

invalid_grant: state mismatch #111

Unanswered
vmishra22 asked this question in Q&A
Discussion options

I have deployed the app on kubernetes and redirect url points to a url within the deployed environment, but I get the error, invalid_grant, state mismatch.

Example:
app_url = https://backend..com/login
redirect_url = https://backend..com/auth/callback

The same code works for http://localhost

You must be logged in to vote

Replies: 1 comment

Comment options

Currently this sample app uses file-based session by default. If your production environment has multiple instances of this app running on different machines, the initial login attempt and the subsequent auth response may not hit the same machine, thus unable to utilize the state persisted in session. Similar issue has been reported in #99 .

You may try to use a centralized session. See hints here.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /