Google 完整API权限

大类
CloudResource
技术标签
云服务-白嫖
优先级
Medium
开始日期
Jan 14, 2024
状态
Maintaining
Public
Public
最后更新
Jan 14, 2024
从rust的goauth包中能找到这些scope(似乎不全)
https://mail.google.com/ https://www.google.com/calendar/feeds https://www.google.com/m8/feeds https://www.googleapis.com/auth/activity https://www.googleapis.com/auth/adexchange.buyer https://www.googleapis.com/auth/adexchange.seller https://www.googleapis.com/auth/admin.datatransfer https://www.googleapis.com/auth/admin.directory.customer https://www.googleapis.com/auth/admin.directory.device.chromeos https://www.googleapis.com/auth/admin.directory.device.mobile https://www.googleapis.com/auth/admin.directory.domain https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.notifications https://www.googleapis.com/auth/admin.directory.orgunit https://www.googleapis.com/auth/admin.directory.resource.calendar https://www.googleapis.com/auth/admin.directory.rolemanagement https://www.googleapis.com/auth/admin.directory.user https://www.googleapis.com/auth/admin.directory.userschema https://www.googleapis.com/auth/admin.reports.audit.readonly https://www.googleapis.com/auth/admin.reports.usage.readonly https://www.googleapis.com/auth/adsense https://www.googleapis.com/auth/adsensehost https://www.googleapis.com/auth/analytics https://www.googleapis.com/auth/androidenterprise https://www.googleapis.com/auth/androidpublisher https://www.googleapis.com/auth/appengine.admin https://www.googleapis.com/auth/apps.groups.migration https://www.googleapis.com/auth/apps.groups.settings https://www.googleapis.com/auth/apps.licensing https://www.googleapis.com/auth/apps.order https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/bigquery https://www.googleapis.com/auth/bigtable.admin https://www.googleapis.com/auth/blogger https://www.googleapis.com/auth/books https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/classroom.coursework.me https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/classroom.profile.emails https://www.googleapis.com/auth/classroom.profile.photos https://www.googleapis.com/auth/classroom.rosters https://www.googleapis.com/auth/cloud.useraccounts https://www.googleapis.com/auth/cloud_debugger https://www.googleapis.com/auth/cloud-language https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudruntimeconfig https://www.googleapis.com/auth/cloud-vision https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/content https://www.googleapis.com/auth/datastore https://www.googleapis.com/auth/ddmconversions https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/dfareporting https://www.googleapis.com/auth/dfatrafficking https://www.googleapis.com/auth/doubleclicksearch https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/firebase https://www.googleapis.com/auth/firebase.messaging https://www.googleapis.com/auth/fitness.activity.write https://www.googleapis.com/auth/fitness.body.write https://www.googleapis.com/auth/fitness.location.write https://www.googleapis.com/auth/fitness.nutrition.write https://www.googleapis.com/auth/forms https://www.googleapis.com/auth/fusiontables https://www.googleapis.com/auth/games https://www.googleapis.com/auth/genomics https://www.googleapis.com/auth/glass.location https://www.googleapis.com/auth/glass.timeline https://www.googleapis.com/auth/groups https://www.googleapis.com/auth/logging.admin https://www.googleapis.com/auth/manufacturercenter https://www.googleapis.com/auth/monitoring https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/ndev.cloudman https://www.googleapis.com/auth/prediction https://www.googleapis.com/auth/presentations https://www.googleapis.com/auth/pubsub https://www.googleapis.com/auth/replicapool https://www.googleapis.com/auth/service.management https://www.googleapis.com/auth/servicecontrol https://www.googleapis.com/auth/siteverification https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/sqlservice.admin https://www.googleapis.com/auth/tagmanager.edit.containers https://www.googleapis.com/auth/tagmanager.edit.containerversions https://www.googleapis.com/auth/tagmanager.manage.accounts https://www.googleapis.com/auth/tagmanager.manage.users https://www.googleapis.com/auth/tagmanager.publish https://www.googleapis.com/auth/taskqueue https://www.googleapis.com/auth/taskqueue.consumer https://www.googleapis.com/auth/tasks https://www.googleapis.com/auth/trace.append https://www.googleapis.com/auth/trace.readonly https://www.googleapis.com/auth/urlshortener https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userlocation.beacon.registry https://www.googleapis.com/auth/webmasters https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/youtubepartner https://www.googleapis.com/auth/youtubepartner-channel-audit https://www.googleapis.com/auth/yt-analytics.readonly https://www.googleapis.com/auth/yt-analytics-monetary.readonly
 
然而看起来Google的 OAuth全是坑:
  • 如果直接把完整列表传进去,会在勾选允许的权限列表的那一步骤出错。
  • 然后精简scope到九十几个的时候,勾选的界面就能正常加载了,但是后面授权的时候又会说“未知错误”(f12里面也没有额外信息,只有500的rpc error code)
  • 最后发现需要精简scope到50多个以内,才能避免触发错误。
 
我最后把重复的scope、google workspace相关、广告相关的很多scope删掉,得到了这个,初步测试可以正常用:
https://mail.google.com/ https://www.google.com/calendar/feeds https://www.google.com/m8/feeds https://www.googleapis.com/auth/activity https://www.googleapis.com/auth/adsense https://www.googleapis.com/auth/adsensehost https://www.googleapis.com/auth/analytics https://www.googleapis.com/auth/androidpublisher https://www.googleapis.com/auth/androidenterprise https://www.googleapis.com/auth/appengine.admin https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/bigquery https://www.googleapis.com/auth/bigtable.admin https://www.googleapis.com/auth/blogger https://www.googleapis.com/auth/books https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/cloud.useraccounts https://www.googleapis.com/auth/cloud_debugger https://www.googleapis.com/auth/cloud-language https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudruntimeconfig https://www.googleapis.com/auth/cloud-vision https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/content https://www.googleapis.com/auth/datastore https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/firebase https://www.googleapis.com/auth/forms https://www.googleapis.com/auth/games https://www.googleapis.com/auth/groups https://www.googleapis.com/auth/logging.admin https://www.googleapis.com/auth/monitoring https://www.googleapis.com/auth/prediction https://www.googleapis.com/auth/presentations https://www.googleapis.com/auth/pubsub https://www.googleapis.com/auth/replicapool https://www.googleapis.com/auth/service.management https://www.googleapis.com/auth/siteverification https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/sqlservice.admin https://www.googleapis.com/auth/taskqueue https://www.googleapis.com/auth/tasks https://www.googleapis.com/auth/trace.append https://www.googleapis.com/auth/trace.readonly https://www.googleapis.com/auth/urlshortener https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/webmasters https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/yt-analytics.readonly