GitHub Gist 访问粒度 read/write API
GitHub Gist access granularity read/write API
我可以在 GitHub 中创建一个访问令牌,这样它只能创建要点(写访问)但不能读取创建的要点吗?
谢谢
恐怕这不可能。
您是否阅读了有关 authentication for the Gist API 的页面?
引自link:
Authentication
You can read public gists and create them for anonymous users without
a token; however, to read or write gists on a user's behalf the gist
OAuth scope is required.
因此您可以撤销对 gist 的 写入 访问权限,但不能撤销 读取 访问权限。
当您通过 API 创建新的 gist 时,您可以 make it public or secret。
(参见 Types of gists)
但即使是秘密要点也不是真正的秘密,任何知道 URL 的人都可以访问它们。
另外,您需要进行身份验证才能创建 要点,并且当您通过身份验证时,you can list all of a user's gists(包括秘密的)。
我可以在 GitHub 中创建一个访问令牌,这样它只能创建要点(写访问)但不能读取创建的要点吗?
谢谢
恐怕这不可能。
您是否阅读了有关 authentication for the Gist API 的页面?
引自link:
Authentication
You can read public gists and create them for anonymous users without a token; however, to read or write gists on a user's behalf the gist OAuth scope is required.
因此您可以撤销对 gist 的 写入 访问权限,但不能撤销 读取 访问权限。
当您通过 API 创建新的 gist 时,您可以 make it public or secret。
(参见 Types of gists)
但即使是秘密要点也不是真正的秘密,任何知道 URL 的人都可以访问它们。
另外,您需要进行身份验证才能创建 要点,并且当您通过身份验证时,you can list all of a user's gists(包括秘密的)。