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.

How to clear cache when using cert-based auth?

See original GitHub issue

Library

  • msal@1.x.x or @azure/msal@1.x.x
  • @azure/msal-browser@2.x.x
  • @azure/msal-node@1.x.x
  • @azure/msal-react@1.x.x
  • @azure/msal-angular@0.x.x
  • @azure/msal-angular@1.x.x
  • @azure/msal-angular@2.x.x
  • @azure/msal-angularjs@1.x.x

Description

After obtaining a token using certificate (ConfidentialClientApplication.acquireTokenByClientCredential), how can I clear the MSAL cache on logout? As far as I can tell, the only way to do it is by retrieving the account and removing it from the cache but since it’s app-only auth the Account property is empty.

Source

  • Internal (Microsoft)
  • Customer request

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sameeragcommented, Feb 23, 2021

@waldekmastykarz This is a good point. We have missed this use case and marked it as an enhancement. We plan to pick this up in a couple weeks.

1reaction
sameeragcommented, Mar 18, 2021

@samuelkubai will be picking this up in the next few days

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clear Browser Cache of Certificates Used for Authentication
If web server requests/requires client certificate, browser will automatically attempt to find and send client certificate for authentication.
Read more >
Client Certificates and Logout - text/plain
Clearing the Auth Cache alone isn't enough– the browser also must clear/close any authenticated connections to the origin from the reuse pool, ...
Read more >
How To Clear Local CRL and OCSP caches - StackPath Help
Open the Command Prompt or PowerShell and type the following: certutil -urlcache * delete · To only delete the CRL cache: certutil -urlcache...
Read more >
How to clear the SSL state in a browser - A2 Hosting
Clear SSL State Chrome · Click the Google Chrome - Settings icon (Settings) icon, and then click Settings. · Click Show advanced settings....
Read more >
Clear SSL client certificate state from JavaScript - Stack Overflow
The user tries to log in again, but the attempt automatically fails because the last SSL session was cached. I solved this in...
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