[Bug] MSAL.NET Authentication Error in WebView on iOS during AcquireTokenSilent with SharePoint Pages #5253
Labels
needs attention
Delete label after triage
public-client
untriaged
Do not delete. Needed for Automation
Library version used
4.71.0
.NET version
.net 8
Scenario
PublicClient - mobile app
Is this a new or an existing app?
The app is in production, I haven't upgraded MSAL, but started seeing this issue
Issue description and reproduction steps
I'm encountering an issue with MSAL.NET and the WebView when using WithUseEmbeddedWebView set to true in a .NET 8 MAUI application on iOS. The initial authentication works fine with WithUseEmbeddedWebView. However, after that, when calling AcquireTokenSilent, I get an authentication error in the WebView when attempting to load SharePoint pages. This issue does not occur on Android.
Steps to Reproduce:
Relevant code snippets
Expected behavior
The application should silently acquire the token during AcquireTokenSilent and load SharePoint pages in the WebView without triggering an authentication error on iOS, similar to the behavior on Android.
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered: