title: How to test login to google account using CEF + OAuth2?
body: <p>I have already asked this question on CEF Forum <a href="https://www.magpcss.org/ceforum/viewtopic.php?f=10&amp;t=18006" rel="nofollow noreferrer">https://www.magpcss.org/ceforum/viewtopic.php?f=10&amp;t=18006</a>. But unfortunately still haven't received an answer to my question.</p>
  <p>According to the <a href="https://developers.googleblog.com/2020/08/guidance-for-our-effort-to-block-less-secure-browser-and-apps.html" rel="nofollow noreferrer">https://developers.googleblog.com/2020/08/guidance-for-our-effort-to-block-less-secure-browser-and-apps.html</a> Google will apply OAuth2 for sing-in since January 4, 2021.
  I have tried to test my CEF app for compatibility with OAuth2 according to &quot;Test for compatibility&quot; section from here <a href="https://developers.googleblog.com/2020/08/guidance-for-our-effort-to-block-less-secure-browser-and-apps.html" rel="nofollow noreferrer">https://developers.googleblog.com/2020/08/guidance-for-our-effort-to-block-less-secure-browser-and-apps.html</a>.
  When I navigated to <a href="https://accounts.google.com/" rel="nofollow noreferrer">https://accounts.google.com/</a> I simply added Google-Accounts-Check-OAuth-Login:true header to CefRequest in CefResourceRequestHandler.OnBeforeResourceLoad (like described in &quot;Test for compatibility&quot;) but nothing has changed, I still could login successfully to google account via CEF browser. After that I opened CEF browser's DevTools via Remote debugging port to check via Network tab the headers of http requests. But 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 CEF app is considered to be insecure because CEF app is not using OAuth2, when logging in to <a href="https://accounts.google.com/" rel="nofollow noreferrer">https://accounts.google.com/</a>?</p>
  <p>Thank you in advance</p>