0

I am trying to automate login to my app which uses among others, google sso authentication. However login form return error "This browser or app may not be secure.". I set my google account options to allow less secure apps but still nothing.

I browsed few topics:

And it seems that google is blocking this way at all in favor of oauth. People write in these topics that solutions stopped working recently

So is it currently possible, to set ChromeDriver somehow using capabalities, to be able to login through SSO?. I need a simple solution, that will run headless with other scripts on cloud (not something that would require me to manually login first on another instance as one anwser suggests). If its not possible or extremly complicated please tell me I will not waste time on it.

2 Answers2

0

If you want to use chrome capabilities, what you can do is set the user-data-dir to a chrome profile that has already been signed in using SSO.

You should look up how to reuse chrome profiles with selenium.

raveoli22
  • 21
  • 4
0

If your accounts have 2 steps verifications, google believe it's safer and allows you to get login. Then the issue will be how to handle the 2 steps verifications. Working on that :/

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 17 '22 at 16:12