The documentation says this is not supported but the user voice feedback item says you can do this now:
This flow is not currently supported by Azure AD B2C.
Currently, you can use “App Registration” blade in the Azure Portal (outside of the Azure AD B2C blades) to register an apps that define application permission and the register apps that use client credentials to request these. The caveat is that this is done using the same mechanism that you’d use in regular Azure AD.
âš Do not edit this section. It is required for docs.microsoft.com âžź GitHub issue linking.
@spottedmahn Thanks for reporting this. I have assigned the issue to the content author to take a look and update as appropriate.
Reference: SO Post: headless authentication Azure AD b2c
@spottedmahn You can do it outside of AD B2C using this information:
But as you know, this would be completely outside of B2C. I have opened an item in our documentation backlog to clear this up in the article.
We'll respond back to you on this issue when we've done the work. For now, we'll close this GitHub issue.
@spottedmahn An update to this issue: The article Application types that can be used in Active Directory B2C already had a discussion about the limitations around server-side apps. I revised the text per engineering feedback and added a link to the active directory article that describes the flow.
Nice, looks good, thanks @davidmu1 👍