Hi Jonad!
Glad you could narrow down the problem. I am not that deep into those parts of the code but I have some general comments:
In any token (JWT/OAuth2) or ticket (Kerberos) security system time synchronisation is very important.
Default in Windows (at least in older version - might have been updates) a Kerberos/AD domain could only drift 15 minutes between servers until you got locked out.
I did a quick googling to find if OAuth2 has any standard regarding leeway and found at least a recommendation: 30 seconds.
One should always use NTP with time servers (more than one!) as close as possible to any server's location. That should take care of the drifting problem even if the internet connection is slow. 1 second drift is a lot in NTP.
As any security system, setting it up having all levels thought trough is vital - one does not to open up for attacks because of mistakes in lower layers.
I do not know how to get a core developer answer but I will have a look on this in a week or two when my team will start implementing things with OAuth 2 again.
Feel free to ping me again if you find some good settings and post some code snippet.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/vertx/793e5c8e-6a0c-4740-aecb-fa99ad45f7f9n%40googlegroups.com.