lua-resty-openidc icon indicating copy to clipboard operation
lua-resty-openidc copied to clipboard

Race condition

Open SMakhrov opened this issue 4 years ago • 1 comments

In my application I have list of cards - with some information about our customers. When user click on any card then starts authentication - fires authentication function of openidc. Everything is correct if user is waiting until page with card will be loaded. If user will click on another card before previous card loaded then fires error: state from argument:

4c2365b9bee57094c7c16a69eb67b3b3 does not match state restored from session: 027d063f9418c29012198885a8a13dd4

It is also interesting that in some cases, if the user simultaneously tries to open several tabs, then there may not be errors, but the data on the card pages may be mixed. However, the early pages are not loaded to the end. Only the last page is fully loaded.

Environment
  • lua-resty-openidc version - 1.7.2
  • OpenID Connect provider - own provider

SMakhrov avatar Jun 01 '20 17:06 SMakhrov

see #350

zandbelt avatar Sep 01 '20 14:09 zandbelt