Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtain new access token when the current one expires #17

Open
vlad-ignatov opened this issue Mar 14, 2024 · 1 comment
Open

Obtain new access token when the current one expires #17

vlad-ignatov opened this issue Mar 14, 2024 · 1 comment

Comments

@vlad-ignatov
Copy link

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
Copy link
Contributor

arscan commented Mar 14, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants