Job to peridodically clear nonce values from Redis
With each LTI and OA authentication, a nonce value is written to Redis (the shared redis) here: https://gitlab.galileo.usg.edu/galileo/galileo_search/-/blob/master/app/services/redis_service.rb#L39
The nonce is the key, and the value is a datetime string (UNIX timestamp, i think)
This job could remove all nonce values and probably be OK, or it could somhow query redis for those older than a certain time? Or iterate through all and remove them if they are deemed 'old'?
In hindsight, an identifier on the nonce value key in Redis or a defined Redis namespace/database would help to identify all nonce values (distinct form the IP values) and simplify this operation. This change wouldn't bee too difficult to accomplish before go-live.
If this issue isn't dealt with, we will fill up Redis with nonce values and potentially push out some IP address values.