Issue Description
I am implementing a custom policy in Azure AD B2C.
The same local user account is able to sign in successfully using a built‑in User Flow policy. However, when I attempt to sign in using a Custom Policy, the sign‑in fails.
Observed Behavior
When using the Custom Policy, clicking the Sign In button results in a frontend validation error:
Invalid username or password
At the same time, when I check the Azure AD B2C Sign‑in logs, the authentication status shows Success for the same sign‑in attempt.
Summary
- ✅ Sign‑in works correctly with User Flow policy
- ❌ Sign‑in fails with Custom Policy
- ❌ Frontend shows Invalid username or password
- ✅ Azure AD B2C Sign‑in logs show Success
Issue Description
I am implementing a custom policy in Azure AD B2C. The same local user account is able to sign in successfully using a built‑in User Flow policy. However, when I attempt to sign in using a Custom Policy, the sign‑in fails.Observed Behavior
- When using the Custom Policy, clicking the Sign In button results in a frontend validation error:
Invalid username or password
- At the same time, when I check the Azure AD B2C Sign‑in logs, the authentication status shows Success for the same sign‑in attempt.
Summary
- ✅ Sign‑in works correctly with User Flow policy
- ❌ Sign‑in fails with Custom Policy
- ❌ Frontend shows Invalid username or password
- ✅ Azure AD B2C **Sign‑in logs show Success