aws-solutions / virtual-waiting-room-on-aws

Virtual Waiting Room on AWS solution helps absorb and control incoming user requests to your website during an unusually large burst of traffic, usually due to a large-scale event.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change how tokens are generated and re-generated during event time

JimTharioAmazon opened this issue · comments

Currently our process is idempotent in that once a token is generated for a request ID, that same token will be returned each time with the same claims and previous iat, nbf, and exp attributes.

We should change to storing only the claims including iat, nbf, and exp attributes in the table, and reusing those claims for a new token if one is requested for a specific request ID.