Managing external identities to enable secure access for partners, customers, and other non-employees
Hello Abir,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having issues with the OnPasswordSubmit JIT migration listener configured per docs, extension never invoked (AADSTS50000 with no auth-events SP sign-in log).
Regarding your explanation, your webhook is not the problem yet. The failure is occurring before Microsoft Entra dispatches the OnPasswordSubmit callout. You can isolate and fix it by the below:
- Run
validateAuthenticationConfigurationagainst the OnPasswordSubmit custom extension to catch endpoint/authentication-contract errors pre-runtime. Use the beta validation API because Microsoft’s beta validation explicitly supports onPasswordSubmitCustomExtension. - https://learn.microsoft.com/en-us/graph/api/customauthenticationextension-validateauthenticationconfiguration?view=graph-rest-beta - On the failing sign-in, open Sign-in logs → Authentication Events and capture the 10030xx error code. Do not rely on service-principal sign-in logs as your primary signal; Microsoft documents the Authentication Events tab as the supported diagnostic view for custom authentication extension failures. - https://learn.microsoft.com/en-us/entra/identity-platform/custom-extension-troubleshoot
- If you get 1003014/1003015, fix the extension contract so that
resourceIdis exactlyapi://<same-fqdn-as-targetUrl>/<appId>and the FQDN matches thetargetUrl. - https://learn.microsoft.com/en-us/entra/identity-platform/custom-extension-troubleshoot, https://learn.microsoft.com/en-us/graph/api/resources/onpasswordsubmitcustomextension?view=graph-rest-1.0 - If you get 1003016/1003017/1003018/1003019, fix the service-principal state for the API app referenced by
resourceId: it must exist in the tenant and be enabled. - https://learn.microsoft.com/en-us/entra/identity-platform/custom-extension-troubleshoot - If you get 1003021, grant/admin-consent Microsoft Graph → CustomAuthenticationExtensions.Receive.Payload to the API app used by the extension. Microsoft documents this exact missing consent as a blocking error. - https://learn.microsoft.com/en-us/entra/identity-platform/custom-extension-tokenissuancestart-configuration,
- Rebuild the extension/API authentication using Microsoft’s documented model: create a dedicated API app registration from the custom extension API Authentication step, then secure the Azure Function/API with the external tenant issuer
https://{domain}.ciamlogin.com/{tenantId}/v2.0, allow client app99045fe1-7639-4a75-9d4a-577b6ca3810f, and allow only your tenant. - https://learn.microsoft.com/en-us/entra/identity-platform/custom-extension-tokenissuancestart-configuration, https://learn.microsoft.com/en-us/entra/identity-platform/custom-extension-overview
Meanwhile, use the associated links for more readings and detail steps. It's all about you run the validation API, capture the Authentication Events error code, fix the exact configuration defect it identifies, and only after those two supported checks are clean should you treat the case as a likely Microsoft service-side incident requiring a support ticket with the supplied trace IDs. Ans you can raise ticket via your Azure Portal.
I hope this is helpful! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.