title: Spring Security : Add custom message for authentication failure ( "Bad Credentials" to "Invalid Credentials")
body: <pre><code>Authentication authentication = authenticationManager.authenticate(
      new UsernamePasswordAuthenticationToken(
          loginRequest.getUserName(),
          loginRequest.getPassword()
      )
  );
  </code></pre>
  
  <p>Currently the response is like below:</p>
  
  <pre><code>{
    "timestamp": "2020-05-30T17:50:38.307+0000",
    "message": "Bad credentials",
    "details": "uri=/auth"
  }
  </code></pre>
  
  <p>I want this to be like this:</p>
  
  <pre><code>{
    "timestamp": "2020-05-30T17:50:38.307+0000",
    "message": "Invalid credentials",
    "details": "uri=/auth"
  }
  </code></pre>