MAUI B2C Blank Page

phil ciraolo 86 Reputation points
2022-07-09T13:38:32.827+00:00

I'm using B2C for my MAUI app and the login process works as expected until we after we log in. A blank page is displayed right after log in. The App name is also displayed as the page title so it looks to redirecting back to the app but to a blank page

The redirect uri in the Azure App registration under Mobile and Desktops is set to msal{my app id}://auth and is the only redirect uri.

Access Tokens and ID tokens are both checked.
Allow Public Flows is set to yes.

In the AndroidManifest I have:

<activity android:name="microsoft.identity.client.BrowserTabActivity" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="msal{my app id}" android:host="auth" />
</intent-filter>
</activity>

Is the ://auth is an internal fixed path that is used by Indentity? Not sure on how this works internally.

Can anything else be used in its place?

Using VS2022 Version 17.3.0 Preview 2.0
Using the latest Microsoft.Indentity.Client 4.46.0 - preview2

Any suggestions on how to resolve this issue?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,579 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,570 questions
{count} votes

1 answer

Sort by: Most helpful
  1. phil ciraolo 86 Reputation points
    2022-07-12T04:01:10.01+00:00

    I was able to resolve this issue by deleting the App in Azure and then creating a new app. Once I did this it work perfectly.