tombolaltd/ecs-monitor

Implement session resumption once STS credentials have expired

Closed this issue · 1 comments

In production, we ask AWS STS (Security Token Service) to supply the client application with temporary AWS credentials so we can query the services and actually retrieve data.
These temporary credentials expire, currently requiring a reload of the page to get new ones.
We should implement a re-authentication when the session expires so we don't have to reload the page.

Another thing we can improve is storing the auth response in local storage, that way, if the credentials are still valid (not expired) we don't need to do that initial request on page load