Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't bypass Login With Google #26

Open
heritechie opened this issue Feb 18, 2023 · 6 comments
Open

Can't bypass Login With Google #26

heritechie opened this issue Feb 18, 2023 · 6 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@heritechie
Copy link

Try to automate login with google process

it gives me error message:
"This browser or app may not be secure"

image

Here's my code so far:

package main

import (
	"github.com/go-rod/rod"
	"github.com/go-rod/rod/lib/utils"
	"github.com/go-rod/stealth"
)

func main() {
	const email = "<my_gmail_account>"
	browser := rod.New().MustConnect()
	page := stealth.MustPage(browser)
	page.MustNavigate("https://accounts.google.com/ServiceLogin")
	page.MustElement("#identifierId").MustInput(email).MustType()
	page.MustElement("#identifierNext").MustClick()
	utils.Pause()
}

someone report the same issue here:
berstend/puppeteer-extra#668

anybody, can give me directions?

@ysmood
Copy link
Member

ysmood commented Feb 19, 2023

Please check other similar issues, it works fine to me even without stealth.

@ysmood ysmood added duplicate This issue or pull request already exists question Further information is requested labels Feb 19, 2023
@NuLL3rr0r
Copy link

I have the exact same problem with Google. I've seen #21 where you mentioned it might be the User Agent. I did set the exact user agent as my browser but it won't pass. I've also noticed no matter what user agent I set at least www.whatismybrowser.com is able to detect the browser!

Screenshot_2023-03-17_20_15_53_974040116

The same issue it seems has come up with Puppeteer and it seems there are solutions for it as mentioned here and also the latest known workaround here. Though, I am not sure how can I implement that using go-rod. It would be nice if go-rod/stealth implement this.

@NuLL3rr0r
Copy link

Just more examples of it getting detected:

Screenshot_2023-03-17_20_20_27_904964293

Screenshot_2023-03-17_20_21_32_616382630

@NuLL3rr0r
Copy link

NuLL3rr0r commented Mar 17, 2023

Another update. I tried Puppeteer and it's able to login using Brave. Though, whatismybrowser is still able to detect the real browser just like go-rod.

@heritechie
Copy link
Author

Hi @NuLL3rr0r , have you try user-mode option ?
currently it works on my use case.

@NuLL3rr0r
Copy link

Hey, @heritechie thank you for the suggestion. I haven't tried that. I will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants