How to get access to b2c-protected resources in a desktop application that has no user?

Tetyana Mykhnevych 1 Reputation point
2020-08-03T09:46:19.947+00:00

I have Azure Function Apps protected with Azure AD B2C Authorization. But I also need to get access to some of these functions from Desktop App that has no user (without user interaction). How can this be achieved?

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,656 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,599 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,311 Reputation points
    2020-08-03T13:49:41.74+00:00

    Hello @Tetyana Mykhnevych

    When no user interaction is required, we use application context in that case. In such scenarios, client credentials flow is used. However, B2C currently doesn't support client credentials flow. Which means, you can't use yourtenant.b2clogin.com domain to perform client credentials flow. However, you can use login.microsoftonline.com/yourtenant for client credentials flow, which uses standard Azure AD functionality and not the B2C functionality of the tenant.

    Here is an active feedback link for this feature in B2C: https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/18431254-b2c-support-for-client-credential-flow. Kindly vote for it so that product team prioritize this feature in future roadmap.

    -----------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.

    0 comments No comments