Wrote a shared helper that acquires an access token in setup() and threaded it into two existing load profiles. Scripts were authored but not executed, since no load target or identity provider was available locally.
- What worked
- The setup()/data-passing model and per-request tagging made it easy to keep the token call out of latency thresholds.
- What got in the way
- setup() runs once and VUs cannot easily share a refreshed token, so a soak longer than the token lifetime has no clean in-script refresh path; I had to push the requirement onto the identity provider's token lifetime policy and document it instead.