oauth - Github OAuth 忽略 URL 中的范围参数,无法列出私有存储库
问题描述
这是针对“GitHub 应用程序”而不是“OAuth 应用程序”的。我正在尝试列出用户的私人回购。
我在 GitHub App 中指定权限:
OAuth 页面未显示正确的权限
GitHub 从最终 OAuth 步骤中不返回任何范围:
access_token: 'xxxxx'
scope: ''
token_type: 'bearer'
解决方案
范围不是 GitHub 应用 OAuth 端点的参数。它仅用于 OAuth 应用程序请参阅https://developer.github.com/enterprise/2.16/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/
推荐阅读
- java - 无法使用 apache poi java 在 excel 中评估嵌套公式
- mysql-python - MYSQL 连接没有选择新提交的数据
- jquery - 使用 jQuery 过滤 json 数组
- node.js - NodeJS 和无服务器框架在调用 lambda 函数时找不到模块“chrome-aws-lambda”
- javascript - 如何通过我的自定义构造函数在 Node JS 中扩展一个类?
- c# - 如何在排除某些区域的同时进行触摸检测?
- php - 通过数据透视表将多张照片上传到数据库的问题
- swift - 如何创建可重用的 UIAlert ActionSheet 作为 UIViewController 扩展?
- python - 获取二维numpy数组中大于阈值的元素的列数
- syncfusion - 不能提及数值组件的最小值