-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced timeouts for MSAL calls. (#2562)
* Introduced timeouts for MSAL calls. * Fixed indentation issues. * Added unit tests * Added a max wait duration of 20 seconds to MSAL calls - Added more tests - Improved test to check for specific error message * Added Timeout Exception catch clause for one of the auth methods * Replaced lock with tryLock. - Replaced lock with tryLock to avoid potential long waiting for other threads while one thread is taking long to complete. * Replaced lock with semaphore for beter readablility. - Added detailed comment for the usage of semaphore. * Renamed semAcquired to isSemAcquired * Fixed indentation for an existing code line * Change to use Mono::timeout method * Updated TOKEN_WAIT_DURATION_MS to correct value. * Improved error messages
- Loading branch information
Showing
4 changed files
with
166 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.