Trying to use 'Postman' and having trouble setting Basic access authentication Headers

后端 未结 4 777
渐次进展
渐次进展 2020-12-13 19:29

I have an API endpoint that I am trying to test with the google app: \'Postman\'. I need to set the headers which use \'Basic authentication\'. I am not sure what should go

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 19:45

    Your header field should look like this:

    Header : Authorization

    Value : Basic base64('YourOrgName:YourAPIKEY');

    You can get the base64 value of your string here:

    https://www.base64encode.org/

    For example, for my-org-name:123key4api it should be bXktb3JnLW5hbWU6MTIza2V5NGFwaQ==.

    The complete header would look like:

    Authorization: Basic bXktb3JnLW5hbWU6MTIza2V5NGFwaQ==

提交回复
热议问题