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

Discard access token if resource returned 401 #19

Open
kostrse opened this issue Nov 23, 2022 · 0 comments
Open

Discard access token if resource returned 401 #19

kostrse opened this issue Nov 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kostrse
Copy link
Collaborator

kostrse commented Nov 23, 2022

AzureMiddleware and AzureTokenProvider are implemented in a way that tokens being kept in cache until their expiration time regardless whether the token is still accepted or not.

In cases when resource endpoint starts rejecting a token and returns 401, the middleware should invalidate the token and subsequent request should trigger token refresh.

Could be implemented here.

@kostrse kostrse changed the title Discard access token if endpoint returned 401 Discard access token if resource returned 401 Nov 23, 2022
@aangelisc aangelisc added the bug Something isn't working label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants