Azure-Samples / active-directory-b2c-advanced-policies

Sample for use with Azure AD B2C with Custom Policies.
http://aka.ms/aadb2ccustom
MIT License
217 stars 145 forks source link

Validation errors do not communicate reason for failed validation #55

Open millicandavid opened 5 years ago

millicandavid commented 5 years ago

Does anyone have any advice on troubleshooting validation errors? I tried setting up Application Insights for my tenant but all I see is a generic message

"Error returned was 400/Request_BadRequest: One or more property values specified are invalid."

I had a working setup based on the starter pack. All I did was add a companyName field on signup and it fails validation. I posted more info at https://stackoverflow.com/questions/57186366/how-to-troubleshoot-validation-errors-in-azure-active-directory-b2c-custom-attri

xinaxu commented 4 years ago

That is the exact response returned from AAD Graph API. We don't yet log the request sent to Graph so we don't know which property has invalid value. But we are planning to enhance the debugability and logging experience so this kind of issue will be easier to troubleshoot in the future.