I have an Azure ad b2c custom policy that needs to talk to an API (seamless migration). Let's say that the username and password is correct (this works), then B2C talks to the API, user is authenticated and password is updated on B2C.
Now, my problem, if the user enters the wrong password, then the API returns 401 (Unauthorized) and the error message displayed to the user is the following
Basic credentials specified for 'TechnicalProfile' are invalid.Check that the credentials are correct and that access has beengranted by the resource.
This error is not very user friendly, but I can't find how to change this. Any help? Or do I need to do it directly on the UI template?