From ceba5b7aaffdd75f5bbbac1a5a269cca37da1283 Mon Sep 17 00:00:00 2001 From: markcowl Date: Thu, 13 Sep 2018 21:15:22 -0700 Subject: [PATCH] Fix issue with protected cache --- src/Authentication/Authentication/ProtectedFileTokenCache.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Authentication/Authentication/ProtectedFileTokenCache.cs b/src/Authentication/Authentication/ProtectedFileTokenCache.cs index b4df3de0df..faebfe13fd 100644 --- a/src/Authentication/Authentication/ProtectedFileTokenCache.cs +++ b/src/Authentication/Authentication/ProtectedFileTokenCache.cs @@ -30,10 +30,12 @@ public class ProtectedFileTokenCache : TokenCache, IAzureTokenCache private static readonly string CacheFileName = Path.Combine( #if !NETSTANDARD Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), + Resources.OldAzureDirectoryName, #else Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), + Resources.AzureDirectoryName, #endif - Resources.AzureDirectoryName, "TokenCache.dat"); + "TokenCache.dat"); private static readonly object fileLock = new object();