[x] Either no new documentation is required by this change, OR I added new documentation
[x] Either no new tests are required by this change, OR I added new tests
[ ] I have run pep8 and pylint. I have cleaned up all valid errors and warnings in code I have added or modified. These tools may generate false positives. Don't be worried about ignoring some errors or warnings. The goal is clean, consistent, and readable code.
Signed-off-by: Liam Mahoney lmahoney@oshkoshcorp.com
Fixed infinite recursion bug in the
resilient-lib.OAuth2ClientCredentialsSession.update_token
method.Description
Added the logic to make sure that the request isn't to refresh the authorization token before checking whether that token is expired.
Motivation and Context
17
How Has This Been Tested?
Verified that I can refresh an expired bearer token with Microsoft Security Graph after this change.
Checklist:
Signed-off-by: Liam Mahoney lmahoney@oshkoshcorp.com