FakeLeung
V2EX  ›  GitHub

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

  •  
  •   FakeLeung · Feb 25, 2019 · 1809 views
    This topic created in 2657 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   ·   Solana   ·   2762 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:11 · PVG 18:11 · LAX 03:11 · JFK 06:11
    ♥ Do have faith in what you're doing.