phpauthenticationpostmanbasic-authentication

why my postman basic auth not working correctly?


  1. I had added username and password as basic authentication in Postman.

basic auth image

  1. I can see authentication header after sending request too.

authentication header image

So why I didn't get 401 authentication error if I put some wrong username/password or empty ?


Solution

  • For Authentication need to set your account with basic auth or you can use your environment variable json file to set your details on global for change the header authentication. enter image description here