Modify adb2c custom message "The username or password provided in the request are invalid."

Marappa, Basavaraju 6 Reputation points
2021-02-10T08:52:29.467+00:00

adb2c custom policy .
Modify adb2c custom message "The username or password provided in the request are invalid."

Microsoft Security Microsoft Entra Microsoft Entra External ID
0 comments No comments
{count} vote

4 answers

Sort by: Most helpful
  1. NOBTA 86 Reputation points
    2021-04-01T04:19:09.557+00:00

    I was facing the same issue and resolved it to change an Azure AD B2c based custom policy (*_TrustFrameworkBase.xml) as following,


    <ClaimsProvider>
      <DisplayName>Local Account SignIn</DisplayName>
      <TechnicalProfiles>
        <TechnicalProfile Id="login-NonInteractive">
          <DisplayName>Local Account SignIn</DisplayName>
          <Protocol Name="OpenIdConnect" />
          <Metadata>
            :
            <!-- Item Key="grant_type">password</Item -->  // Comment out this row
          </Metadata>
            :
        </TechnicalProfile>
      </TechnicalProfiles>
    

    </ClaimsProvider>

    1 person found this answer helpful.

  2. James Hamil 27,211 Reputation points Microsoft Employee Moderator
    2021-02-10T21:42:40.047+00:00

    Hi @Marappa, Basavaraju , you can use custom policies like this to accomplish a custom message change. Please let me know if you have any questions!

    Best,
    James


  3. Marappa, Basavaraju 6 Reputation points
    2021-02-18T03:57:38.15+00:00

    hi, we are using custom policy xml's only. still the message not working.

    0 comments No comments

  4. pxoxo 1 Reputation point
    2021-07-16T13:35:43.337+00:00

    <!-- Item Key="grant_type">password</Item -->

    Works magically. The error message changed to We can't seem to find your account from The username or password provided in the request are invalid.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.