Is your feature request related to a problem? Please describe.
We are using Microsoft.Identity.Web library. They internally use AcquireTokenOnBehalfOfParameterBuilder in order to get token. But this way the API lacks the WithForceRefresh functionality. Our application needs to refresh the OBO token in some cases, but we are unable to do so.
I read the docs https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/on-behalf-of#how-to-call-obo to use AcquireTokenOnSilent to be able to refresh the token. When I try to modify the code to call AcquireTokenOnSilent, it seems that the cache for AcquireTokenOnSilent gets a new own entry identified by user home account id... so AcquireTokenOnBehalfOf returns old token (from old cache entry identified by some token hash) and the AcquireTokenOnSilent returns new token (from new cache entry identified by user home account id)...
I even tried to clear the cache manually, but I am unable to get the correct hash for the cache entry made by the AcquireTokenOnBehalfOf call.
How can I refresh the cached token made by a AcquireTokenOnBehalfOf call?
Please, help. Thx. :)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4