Open sjanssen1 opened 1 year ago
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) We've tried upgrading the shiro dependency on our legacy app to 1.12.0 but ran into a bunch of dependency/classloading problems which we are unable to fix at this time. We're also not sure if it would have any effect on the issue we are having based on the release notes. (Between waffle 1.8.x and 1.9.x there were some notes mildly related to the problem we seem to be having)
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. It would be appreciated.
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?