Hello JamesHamil-MSFT, thank you for reaching out. I was following these tutorials/docs:
https://learn.microsoft.com/en-us/azure/active-directory-b2c/restful-technical-profile
https://learn.microsoft.com/en-us/azure/active-directory-b2c/api-connectors-overview?pivots=b2c-custom-policy
https://learn.microsoft.com/en-us/azure/active-directory-b2c/add-api-connector-token-enrichment?pivots=b2c-custom-policy
I will share more context about my issue. We have a CRM integrator/endpoint hosted on function app. After a new user's "SignUp" in Azure B2C we make an HTTP POST request to that endpoint, and CRM receives user data. This solution works.
We want to make an HTTP GET request after the user's "SignIn". I tried to edit B2C_1A_TRUSTFRAMEWORKEXTENSIONS.xml policy following the tutorials but without success.
I'm getting this error after user SignIn - The claims exchange 'REST-CRMGetUserInfo' specified in step '7' returned HTTP error response with Code 'BadGateway' and Reason 'Bad Gateway'.