Why does Azure AD B2C application allowPublicClient = null work like its set to true when I log in with Msal?

Kristian Dahl 26 Reputation points
2021-03-04T08:11:55.053+00:00

I recently created an Azure AD B"C application and noticed the property allowPublicClient default to null after creation by looking in the manifest. On the Authentication page for the application in Azure UI it shows as having the value "No" under Allow public client flows.

I was using it to log in to my application using MSal 2.0 (msal browser) using oauth PKCE and it worked, if I set it to true it also works but if I set it to false I get the error: AADB2C90058: The provided application is not configured to allow public clients.

My question is: Why can i log in with allowPublicClient = null when it shows as false in the ui? If null is false, I should get the error AADB2C90058 just like when its actually set to false.

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,634 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,380 questions
{count} votes