Page 1 of 1

Test login to google account using CEF + OAuth2

PostPosted: Mon Nov 23, 2020 9:07 am
by kubushkaitesanton
Hi All,

I have tried to test my CEF app for compatibility with OAuth2 which will be applied by google in January according to "Test for compatibility" section from here https://developers.googleblog.com/2020/ ... -apps.html.
When I navigated to https://accounts.google.com/ I simply added Google-Accounts-Check-OAuth-Login:true header to CefRequest in CefResourceRequestHandler.OnBeforeResourceLoad but nothing has changed, I still could login successfully to my google account. After that I connected to DevTools via Remote debugging port to check via Network tab whether the Google-Accounts-Check-OAuth-Login:tru header is added to http requests. The result was that Google-Accounts-Check-OAuth-Login:true header has been added successfully to http requests.
So how should I simulate the case that my CEF app is considered to be insecure, when logging in to https://accounts.google.com/, because my CEF app is not using OAuth2?

Thank you in advance

Re: Test login to google account using CEF + OAuth2

PostPosted: Mon Nov 23, 2020 11:34 am
by ndesktop
They will block starting with January 4, 2021. At least that is what they say in the above link.

Re: Test login to google account using CEF + OAuth2

PostPosted: Tue Nov 24, 2020 4:13 am
by kubushkaitesanton
Thank You for the response
So I do not have a chance to test whether my OAuth2 solution works to avoid blocking? It's a kind of pig in a poke if I'm not able to test my results before this blocking gets actual