//tokencache.hasstatechanged
See original GitHub issueUsing 2.7.0 I have this warning:
‘TokenCache.HasStateChanged’ is obsolete: ‘Please use the equivalent flag TokenCacheNotificationArgs.HasStateChanged, which indicates if the operation triggering the notification is modifying the cache or not. Setting the flag is not required.’
My current code:
if (args.TokenCache.HasStateChanged)
Is there a new TokenCacheHelper
class?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
TokenCache.HasStateChanged Property
HasStateChanged, which indicates if the operation triggering the notification is modifying the cache or not. Setting the flag is not required.
Read more >Token cache serialization in MSAL.NET is not working
I am facing some issues when trying to serialize the tokencache, ... HasStateChanged) { lock (FileLock) { // reflect changesgs in the ...
Read more >Class TokenCache | Azure SDK for Net - Microsoft .NET
Syntax. public class TokenCache ... Declaration. public TokenCache (byte[] state); ... Declaration. public bool HasStateChanged { get; set; } ...
Read more >HasStateChanged - Typedescriptor
HasStateChanged Property obsolete. Gets or sets the flag indicating whether the state of the cache has changed. MSAL methods set this flag after...
Read more >ADAL distributed token cache in ASP.NET Core
Azure AD Authentication Library (ADAL) relies on its token cache for ... which you can tell by examining the HasStateChanged property.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please delete that line
args.TokenCache.HasStateChanged = false;
- you no longer need to set this flag.you can safely remove this bit. it’s not used by MSAL