question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

//tokencache.hasstatechanged

See original GitHub issue

Using 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bgavrilMScommented, Jan 29, 2019

Please delete that line args.TokenCache.HasStateChanged = false; - you no longer need to set this flag.

0reactions
jmprieurcommented, Jan 29, 2019

you can safely remove this bit. it’s not used by MSAL

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found