Page 1 of 2
Google refusing login
Posted: Mon Dec 23, 2019 5:24 pm
by thefunkyjoint
Hi,
Certain Google accounts are refusing logins from my app, returning the error below :
Couldn't sign you in
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.
Is there anything i could do ?
Thanks
Re: Google refusing login
Posted: Mon Dec 23, 2019 5:59 pm
by salvadordf
This is what Jonathan Skelker said in the forum where this was discussed :
Applications that require a Google sign-in should authenticate using OAuth via the system browser, even if they are embedding a browser engine
https://groups.google.com/a/chromium.or ... j1v_cqBgAJ
The CEF project maintainer also said that applications that sign in to Google services should authenticate using OAuth 2.0 and the system browser :
https://magpcss.org/ceforum/viewtopic.php?f=10&t=16764
Fortunately, there seems to be many code examples when you search "
delphi oauth2 example" in Google.
Re: Google refusing login
Posted: Mon Dec 23, 2019 6:12 pm
by salvadordf
I forgot to add that if anyone has a working OAuth code example I would gladly create a demo in the project.
Re: Google refusing login
Posted: Mon Dec 23, 2019 6:38 pm
by thefunkyjoint
That would be very nice as this issue will affect a lot of people... For the time being, as far as i know, not all logins are being affected, but probably they will increase this over time and without Google login a lot of applications will be useless with CEF...
Re: Google refusing login
Posted: Mon Dec 23, 2019 6:38 pm
by thefunkyjoint
I'm wondering how can Google identify we are running CEF and not a 'regular browser'. Does 'GlobalCEFApp.DisableReadingFromCanvas := true;' makes any difference about this ?
Re: Google refusing login
Posted: Mon Dec 23, 2019 6:57 pm
by salvadordf
I don't know. They don't share how they detect the browsers.
Re: Google refusing login
Posted: Tue Dec 24, 2019 11:42 am
by thefunkyjoint
It seems now it's official : a lot of people had contacted me claiming they can't use Youtube logged on my app
Screen Shot 2019-12-24 at 08.47.06.jpg
Re: Google refusing login
Posted: Thu Jan 02, 2020 5:20 pm
by thefunkyjoint
Is there any way to block any fingerprinting attempt ? Probably google is doing some fingerprinting technique to identify that we are using CEF.
Re: Google refusing login
Posted: Thu Jan 02, 2020 7:18 pm
by salvadordf
I think the safest and fastest route is to implement OAuth authentication in your application.
I don't know how they identify the browsers and other workarounds would be short-lived because they know the Chromium code base much better than any of us.
Re: Google refusing login
Posted: Fri Jan 03, 2020 12:03 pm
by thefunkyjoint
salvadordf wrote: Thu Jan 02, 2020 7:18 pm
I think the safest and fastest route is to implement OAuth authentication in your application.
I don't know how they identify the browsers and other workarounds would be short-lived because they know the Chromium code base much better than any of us.
I understand. Is there any example code showing how OAuth works ?
Thank you !