Page 1 of 1

Chrome / GMail Signin

Posted: Sun Aug 30, 2020 12:26 pm
by andy.t
Hi - Everything in my app is nearly working perfectly :-)
However Google appear to have changed the way GMail/GSuite signin checks for the browser. When I load gmail into CEF and try and signin, it asks for the email address and then comes up with

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

Any idea on how I get around this in order to load gmail into my CEF project?

Many thanks,
Andy Tucker.

Re: Chrome / GMail Signin

Posted: Sun Aug 30, 2020 1:01 pm
by salvadordf
Hi,

Google is blocking all direct login attempts made by embedded browsers. :(

You will have to use OAuth2 to get a token that can be used to access the Google API. There's a demo that uses CEF components to get that token called OAuth2Tester but you can use any other components.

These links are a little outdated but they have all the information about this issue :
viewtopic.php?f=8&t=751
viewtopic.php?f=8&t=1370
viewtopic.php?f=8&t=1078
https://magpcss.org/ceforum/viewtopic.php?f=10&t=16764
https://magpcss.org/ceforum/viewtopic.php?f=10&t=16717