gpt4 book ai didi

authorization - 如何在协作环境中在 Postman 中设置授权

转载 作者:行者123 更新时间:2023-12-04 07:37:46 24 4
gpt4 key购买 nike

我将 Postman 升级到了 6.2.5。它允许免费用户使用 Teams。好的,所以我创建了团队并在其中开始了新的收藏。

在集合级别,我将 Authorization 指定为 OAuth 2.0,生成了新的访问 token (使用按钮 Get New Access Token),所以它是现在在 Available Tokens 中。不知道token有没有分享给其他团队成员(我还没邀请)。但是有个提示

Heads up! These parameters hold sensitive data. To keep this data secure while working in a collaborative environment, we recommend using variables.

See the picture

我知道这些变量,但不知道如何在这种情况下使用它们。在协作环境中设置 OAuth 2.0 授权的正确方法是什么? (我想将它保留在集合级别,以便它可以沿文件夹和请求的结构继承。)

最佳答案

这是他们的意思:

来源:https://learning.getpostman.com/docs/postman/team_library/sharing/#sharing-environments

1) In addition to the standard way to share an environment, Postman Pro and Enterprise users can also share an environment with their team.

2) From the gear icon in the upper right corner of the Postman app, select "Manage Environments", and click the orange Share button next to the environment you want to share. You will have one last opportunity to hide any sensitive values like passwords and access tokens before sharing the environment. When someone else imports the environment, or accesses the shared template, they can input their own personal information within their own version of the template. environment

https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/58787793.png

3) Click the Share button to complete the process.
4) Go to the Team Library to view the full list of shared team environments.

如果您有长访问 token ,例如:“a1dfgz51dgs5dg1s21gdsdg”,您将编写 {{accessToken}},因为它将成为一个环境变量。

关于authorization - 如何在协作环境中在 Postman 中设置授权,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52100047/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com