Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Chrome / GMail Signin

Post Reply
andy.t
Posts: 8
Joined: Sun Feb 23, 2020 9:00 pm

Chrome / GMail Signin

Post 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.
User avatar
salvadordf
Posts: 4575
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chrome / GMail Signin

Post 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
Post Reply