Open acrigney opened 3 months ago
I also can't get await publicClientApplication.AcquireTokenInteractive(scopes).ExecuteAsync(); working. The browser comes up and all is well, except AcquireTokenInteractive never returns.
I tried the code at https://github.com/jstedfast/MailKit/blob/master/Documentation/Examples/OAuth2ExchangeExample.cs No Luck.
Library version used
Microsoft.Identity.Client 4.61.3 and 4.62.0.Preview and Microsoft.Identity.Client.Extensions.Msal 4.61.3 and 4.62.0.Preview
.NET version
.net 8
Scenario
PublicClient - desktop app, PublicClient - mobile app
Is this a new or an existing app?
This is a new app or experiment
Issue description and reproduction steps
I am able to cache tokens, although some of my developers are not able to. But when trying to get a token from the token cache no token is returned even after 20 retries with 2 secs between retries. This was working when I was using a confidential client but as confidential clients are not ment to be used for win or mobile apps. The user has to login interactively again to get a token for the web api calls.
Relevant code snippets
Expected behavior
A token should be retrieved at least after a few retries.
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No work around yet.