htcondor / scitokens-credmon

HTCondor implementation of the Scitokens credential monitor
Apache License 2.0
3 stars 7 forks source link

Add ability to change how soon we refresh tokens for certain providers #45

Closed jasoncpatton closed 4 years ago

jasoncpatton commented 4 years ago

We've observed in CHTC that Box tokens refresh far too quickly... about once every 35 minutes or so. For some providers, refreshing early and often is not a bad idea, however, for Box, only one valid access token can exist at a time, so we should hold off on refreshing it until needed, otherwise execute nodes end up with stale tokens more often.

jasoncpatton commented 4 years ago

This is working on dev server and has pushed Box refresh to a few minutes past an hour.