如何处理“应用暂时无法使用您的Google帐户登录"障碍 [英] How to handle “App is temporarily blocked from logging in with your Google account” barrier

查看:178
本文介绍了如何处理“应用暂时无法使用您的Google帐户登录"障碍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

==>之前未产生此错误,因此我可以接收验证码以便用于连接到我的帐户.

是否可以克服Google的障碍,以便使用 gdrive gdown ?


粘贴验证码后生成的token.json的示例.

 "access_token":".....","token_type":"Bearer","refresh_token":"1/....",到期":"2020-12-21T02:..."} 

解决方案

@tellowkrinkle的评论可以帮助我解决问题.

可能是.我有旧的二进制文件,Google阻止了进行身份验证,说这很危险,他们为我封锁了安全(非常感谢).看来Google现在要求您让他们查看想要访问敏感信息的应用程序通过他们的API

如果您想自己使用它,则需要:

  1. 转到 https://console.developers.google.com 并创建一个新项目你自己
  2. 在顶部的搜索框中搜索Google Drive API,然后将其打开
  3. 单击左侧的OAuth同意屏幕并进行设置.
    • 假设您的帐户不是组织的一部分,则必须说您的应用程序适用于外部用户并正在测试中
    • 在必需的作用域"部分中,添加.../auth/docs和.../auth/drive(我不确定哪个需要,它可能只是其中之一那些).如果您没有完成(2),则可能无法使用此功能
    • 将要与gdrive副本一起使用的帐户添加为应用的测试人员.只有这些帐户才能使用您的副本gdrive,因此每个人都必须自己编译(除非有人并获得他们的Google审查)
  4. 点击左侧的凭据,然后点击创建凭据,然后点击OAuth客户端ID.该应用程序类型为桌面应用程序
  5. 将Client ID和Secret复制到handlers_drive.go第17和18行,然后编译应用程序


  $ git clone https://github.com/prasmussen/gdrive.git$ cd gdrive$ nano handlers_drive.go#将Client ID和Secret复制到handlers_drive.go第17和18行,然后编译应用程序$ mv〜/.gdrive/token_v2.json〜/.gdrive/token_v2.json.old$去获取github.com/prasmussen/gdrive$ go build -ldflags"-w -s"$ cp gdrive $ GOPATH/bin/gdrive$ gdrive关于在浏览器中转到以下网址:https://accounts.google.com/o/oauth2/auth?access_type = .....输入验证码: 


指南:

I am using gdrive and gshell in order to interact with my Google account and download files, get their info.

When I run: gdrive about or gdown about, I get following message

Initializing system (/home/user/.gdrive)
Authentication needed
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=...... \
apps.googleusercontent.com&redirect_uri=....

Enter verification code:


Afterwards, I keep getting following error message, when I pasted the URL starting with https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id= on my browser:

This app is temporarily blocked from logging in with your Google account.

==> This error was not generated before and I was able to receive the verification code, in order to use to connect into my account.

Is it possible to overcome this barrier of Google in order to use gdrive or gdown?


The example of generated token.json, after the verification code is pasted.

  "access_token": ".....",
  "token_type": "Bearer",
  "refresh_token": "1/....",
  "expiry": "2020-12-21T02:..."
}

解决方案

@tellowkrinkle's comment help me to solve the issue.

Probably yes. I have the old binary and Google blocks it from authenticating, saying that it's dangerous and they blocked it for my safety (thanks a lot). It looks like Google now requires you to let them review applications that want to access sensitive information through their API

If you want to use it for yourself, you will need to:

  1. Go to https://console.developers.google.com and create a new project for yourself
  2. Search for the Google Drive API in the search box at the top, and turn it on
  3. Click OAuth consent screen on the left and set it up.
    • Assuming your account isn't part of an organization, you'll have to say your app is for external users and in testing
    • In the required scopes section, add .../auth/docs and .../auth/drive (I'm not sure which needed, it's probably only one of those). This will probably not be available if you didn't complete (2)
    • Add the accounts you want to use with your copy of gdrive as testers of your app. Only these accounts will be able to use your copy of gdrive, so everyone will have to compile their own (unless someone goes and gets theirs reviewed by Google)
  4. Click Credentials on the left, then Create Credentials, then OAuth client ID. The application type is Desktop app
  5. Copy the Client ID and Secret into handlers_drive.go lines 17 and 18 and compile the application


$ git clone https://github.com/prasmussen/gdrive.git
$ cd gdrive
$ nano handlers_drive.go
# Copy the Client ID and Secret into handlers_drive.go lines 17 and 18 and compile the application
$ mv ~/.gdrive/token_v2.json ~/.gdrive/token_v2.json.old
$ go get github.com/prasmussen/gdrive
$ go build -ldflags "-w -s"
$ cp gdrive $GOPATH/bin/gdrive
$ gdrive about 
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=.....

Enter verification code:


Guide:

这篇关于如何处理“应用暂时无法使用您的Google帐户登录"障碍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆