-
Notifications
You must be signed in to change notification settings - Fork 15
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
GitHub says version 2.x, NPM latest is version 1.x. Getting state mismatch error. #21
Comments
Sorry about the confusion - the version mismatch would be my fault for updating github prior to begin ready for an NPM publish, which I am working to rectify now. The 2.x update adds a logout feature, but doesn't (at least 2.0.0 doesn't) fix any issues that would prevent 1.x from working. It is possible you are sending a 1.x configuration to the 2.x library - can you provide the config fields (NOT their values - please keep your information, particularly your client secret, safe) you are setting, and the specific error message you are getting? |
Above is the error I am receiving. When I navigate to any route on my app that is not the route I do not receive this error when I navigate directly to Below are my configs:
|
I just created a sample app using 1.02 of the middleware, using your pattern of configs (with my own org) and I was unable to recreate your issue.
Navigating to A Unrelated to your error, but related to your bug report: 2.0.0 should be visible via npm. It provides a new, automatic /logout route (that is POST-based, in case you have browser pre-fetch or something else hitting your /logout route) |
Has this issue been resolved ? I am also facing this exact issue. |
I'm submitting this issue for the package(s):
I'm submitting a:
Current behavior
Seems to be some breaking changes in v 2. NPM latest version is 1.x. I'm assuming that this would not be an issue if I could get the latest version of the package, but it is not available on NPM. I will clone the repo off github and work from there, but NPM should be updated.
Getting a state mismatch error after a "successful" login. Despite the error, all userContext is attached to the req obj and the route with the oidc.ensureAuthenticated() middleware installed on it can be accessed if manually entered.
Expected behavior
After login, user would proceed to the route they had previously attempted to access. There would be no state mismatch error.
Minimal reproduction of the problem with instructions
Extra information about the use case/user story you are trying to implement
Environment
node -v
): 8.14.0The text was updated successfully, but these errors were encountered: