尝试使用“邮递员”并在设置基本访问身份验证标头时遇到问题 [英] Trying to use 'Postman' and having trouble setting Basic access authentication Headers

查看:59
本文介绍了尝试使用“邮递员”并在设置基本访问身份验证标头时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要尝试通过Google应用测试的API端点:邮递员。我需要设置使用基本身份验证的标题。我不确定'Header:Value'中应该包含什么内容。



这是管理员说应设置标题的方式:
head值是单词 Basic,后跟您的组织名称和您的Api密钥,并用冒号和base64编码。 。我得到的错误是消息:未设置令牌。

解决方案

您的标头字段应如下所示:



Header 授权



基本base64('YourOrgName:YourAPIKEY');



您可以在此处获取字符串的base64值:



https://www.base64encode.org/



例如,对于 my-org-name :123key4api 应该是 bXktb3JnLW5hbWU6MTIza2V5NGFwaQ ==



完整的标题看起来像:



授权:基本bXktb3JnLW5hbWU6MTIza2V5NGFwaQ ==


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 in 'Header: Value'

This is how the admin said the headers should be set: "The head value is the word 'Basic' followed by your org name and your Api key separated by a colon and base64 encoded."

I have tried numerous things but I am not getting it quite right. The error I get is "Message: Token not set".

解决方案

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==

这篇关于尝试使用“邮递员”并在设置基本访问身份验证标头时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆