V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
FakeLeung
V2EX  ›  GitHub

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

  •  
  •   FakeLeung · Feb 25, 2019 · 1711 views
    This topic created in 2622 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   ·   2545 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:56 · PVG 20:56 · LAX 05:56 · JFK 08:56
    ♥ Do have faith in what you're doing.