V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
FakeLeung
V2EX  ›  GitHub

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

  •  
  •   FakeLeung · 2019-02-25 23:02:17 +08:00 · 1276 次点击
    这是一个创建于 1878 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

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

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

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

    1 条回复    2019-02-26 09:34:54 +08:00
    FakeLeung
        1
    FakeLeung  
    OP
       2019-02-26 09:34:54 +08:00
    没有大佬们知道吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5548 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:37 · PVG 14:37 · LAX 23:37 · JFK 02:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.