inferno-framework / bulk-data-test-kit

Inferno Test Kit for servers implementing the Bulk Data Access Implementation Guide
Apache License 2.0
0 stars 0 forks source link

Obtain new access token when the current one expires #17

Open vlad-ignatov opened 8 months ago

vlad-ignatov commented 8 months ago

Many tests might fail with unexpected 401 responses because the access token has expired while running the test. The client should be able to automatically obtain fresh token if needed.

P.S. The SMART server can be helpful in testing/fixing this because you can configure it to use one minute token lifetime.

arscan commented 8 months ago

Thanks @vlad-ignatov -- absolutely. We noticed this as well and is something that we are looking into solving generically, but requires us moving a few things around so we don't have to have tests that are concerned with API and content validation also need authorization-level logic in it. Thanks for opening an issue.

I love how you can configure the token lifetime in the SMART server. Extremely helpful!