linagora / openpaas-gatling

Load test scenarios for the OpenPaaS software suite
Other
1 stars 7 forks source link

renew token depending on expires_in #45

Closed remk closed 3 years ago

remk commented 3 years ago

MaxScenarioLoopTimeInMillis is hard to set fine. I see too alternative:

* keep it like this, but check that if there is a 401 the request is automatically retried

* but this check before each call with a bearer token

I updated the authentication to check if the token should be refreshed before each authenticated request.