FakeLeung
V2EX  ›  GitHub

发现 GitHub 的 OAuth 有一点不太友好。

  •  
  •   FakeLeung · Feb 25, 2019 · 2111 views
    This topic created in 2769 days ago, the information mentioned may be changed or developed.

    就是 scope 的权限给的太宽了。

    不小心填了个 user 就直接申请 read and write:

    不小心填了个 repo 也是申请 read and write:

    即使填了 public_repo 还特么的是 所有 public_repo 的 read and write。。。

    当然了,如果只当注册账号用,只需要将 scope 置空,就可以拿到用户的公开信息。

    但是,我现在只想要用户的 提交 issue 和 issue 中的 comment 的权限,我不知道该如何下手了。。。

    1 replies  •  2019-02-26 09:34:54 +08:00
    FakeLeung
        1
    FakeLeung  
    OP
       Feb 26, 2019
    没有大佬们知道吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2622 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 11:42 · PVG 19:42 · LAX 04:42 · JFK 07:42
    ♥ Do have faith in what you're doing.