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?

Developer technologies | .NET | .NET MAUI
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
{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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.