Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

python - Google OAuth 2.0 based site login problem using Selenium

Python+selenium

(chromedriver 88.0.4324.96, chrome 88.0.4324.150) Recently tried to log in some site using my google account, but got this(the same with stackoverflow):

Couldn’t sign you in This browser or app may not be secure. Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in. So:

  1. I disabled two-factor auth
  2. Allowed less secured apps
  3. find out that browser sends GET response like and changed it as show next:

https://accounts.google.com/o/oauth2/auth?response_type=code

&client_id=I use from my credentials

&redirect_uri=I registered in web app "Authorized redirect URIs"

&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email

&access_type=offline

&state=leave it as it is

I'm getting the same error. If I add other params to url like "client_secret" "Parameter not allowed for this message type: client_secret" What do I do wrong?

question from:https://stackoverflow.com/questions/66068701/google-oauth-2-0-based-site-login-problem-using-selenium

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...