FakeLeung
V2EX  ›  GitHub

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

  •  
  •   FakeLeung · Feb 25, 2019 · 1813 views
    This topic created in 2659 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   ·   3605 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 04:50 · PVG 12:50 · LAX 21:50 · JFK 00:50
    ♥ Do have faith in what you're doing.