Authentification via password credentials trying to replicate as headers


I generated a token in postman with password credentials,
I was not able to get the same response when i pass parameters as headers.

What can be the reason ?


I am looking the hearders, body so i can write a correspondin code

thank you for suggestion