【发布时间】:2015-10-16 08:27:58
【问题描述】:
我可以通过访问以下网址为用户请求令牌:
https://trello.com/1/connect?key=<key>&name=appName&response_type=token&scope=read,write&expiration=never
但是,当我通过 API 请求令牌的信息时,我收到如下响应:
{
"id": "...",
"identifier": "appName",
"idMember": "...",
"dateCreated": "2015-10-15T05:21:19.886Z",
"dateExpires": null,
"permissions": [
{
"idModel": "*",
"modelType": "Board",
"read": true,
"write": true
},
{
"idModel": "*",
"modelType": "Organization",
"read": true,
"write": true
}
]
}
我希望能够请求仅向特定组织授予权限的令牌。但我似乎找不到关于 /1/connect 端点接受哪些选项的明确文档,或者我可以使用哪些其他方法来获取不会过期的特定组织的令牌。
我可以让机器用户只能访问组织,但是当我只想要我已经拥有的权限的子集时,为另一个用户帐户付费将是一种耻辱。
【问题讨论】: