Credentials issue on accessing web api

While accessing web api we are getting "message":"Incorrect user name or password. Please check your credentials and try again.","title":"An Error Has Occurred" error and  it works if SAML disabled.

Same API is working in lower environments with SAML enabled .

So is this related with SAML configuration or any other configurations are missing for WebAPI.

  Discussion posts and replies are publicly visible