-
Notifications
You must be signed in to change notification settings - Fork 186
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
Inconsistent "The token supplied to the function is invalid" errors #1953
Comments
Any correlation to traffic/volume of authentication requests? |
There seems to be no correlation. Happens at random times :/ |
What version of waffle are you using? |
We've originally encountered the issue while using 1.8.2. I've then looked into the release notes for potentially related fixes and tried out 1.9.1 but the issue persisted. We're having compatibility issues when upgrading to the latest waffle release (3.3.0) so that's why we opted for the older release. |
@sjanssen1 What compatibility issue were you having with newer one? The ones noted are quite old. |
The compatibility issues seemed to be related to our application still using an older version of Apache Shiro (1.2.x) I realise this is anything but an ideal situation but if you have any debug tips or tools that would be greatly appreciated. Still trying to figure out the random behavior where the invalid token error would pop up and disappear after refreshing the application and doing the same request again. |
Can you have a look the last comment of @sjanssen1 asking for some debug tips or tools to investigate the issue further. |
not a lot I can do here. The versions noted in use are far too old. I don't have a lot of time available to this app and generally speaking users need to be on latest releases. Because this is on top of JNA and JNA made significant changes in more recent versions its quite possible that is causing issues. Its best to be on latest and go from there. I don't personally use the shiro piece so I don't have very much to offer on it. One could try to go back through commit history and try reaching out to the original author on it in hopes they can help but again being up to date would be best approach. |
We're using the shiro implementation for waffle for many years now and the "The token supplied to the function is invalid" is no stranger to us. We've always been able to fix these errors by making sure to correctly configure the "setspn" configuration and by running as a service with the correct user. (See https://github.com/Waffle/waffle/blob/master/Docs/Troubleshooting.md)
But this time it's different... At random times the user is receiving a 401 due to the error below. But as soon as they refresh the authentication flow runs just fine.
We're seeing the roundtrip of requests happen, where some sort of continuation token is found in the roundtrip request and then all of a sudden we're receiving an error.
Any ideas?
The text was updated successfully, but these errors were encountered: