part 2 - Issue with Azure AD B2C Custom Policy: "Basic credentials specified for 'REST-fetchUserProfile-APAC' are invalid

Ray Garg 20 Reputation points
2025-01-14T16:34:34.0266667+00:00

i have already posted the original problem in detail in this post: https://learn.microsoft.com/en-us/answers/questions/2145431/issue-with-azure-ad-b2c-custom-policy-basic-creden?comment=question#newest-question-comment

you can see the profiles ive pasted there for rest-loginnoninteractive-apac, and rest-fetchuserprofile-apac. the est-loginnoninteractive-apac profile outputs a bearer token while the rest-fetchuserprofile-apac uses that bearer token.

The person who responses, @Sanoop M , suggested using api connectors but the response didnt make sense to me at all. where would i use the api connectpr? in the rest-fetchuserprofile-apac profile? but then wouldnt the authentication type have to change to basic? that doesnt make sense becuase right now its using the bearer as authentication type. im very confused and have made no progress ont his front please help out. everything is detailed in the link ive posted where i already posted the question. again my b2c app registratio in my apac tenant, the correct client id is already pasted in inputclaim section of rest-loginnoninteractive-apac profile. also, the app registraton in portal has user.readwrite.all and dreictory.readwrite.all, and has allow pubic client flows under authneti ation checkmarked to yes just inc ase i need that in case of ropc. please give me the right answer for this !!!!

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,756 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,889 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,238 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
367 questions
0 comments No comments
{count} votes

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.