microsoft-authentication-extensions-for-dotnet icon indicating copy to clipboard operation
microsoft-authentication-extensions-for-dotnet copied to clipboard

persistent cache resiliency

Open SomkaPe opened this issue 4 years ago • 1 comments

Taking to account that file locks are not completely reliable on non Win platforms, It would be nice to implement following features to be race conditions resilient:

  • Switch file cache accessor from non-atomic file writes to atomic file renaming (in order to prevent dirty reads + dirty writes - cache corruption)
  • Retry logic on KeyChainAccessor to deal with race conditions

details can be found here -> https://github.com/AzureAD/microsoft-authentication-extensions-for-java/wiki/Race-conditions

SomkaPe avatar Jul 06 '20 18:07 SomkaPe

@bgavrilMS : Java and soon Python has these improvements. We should ensure to properly plan for these in .NET.

henrik-me avatar Jul 27 '20 18:07 henrik-me