<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Google OAuth2 from desktop app]]></title><description><![CDATA[<p dir="auto">I want to try Google Login from desktop. windows &amp; linux. Tried a source from <a href="http://blog.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0/" target="_blank" rel="noopener noreferrer nofollow ugc">http://blog.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0/</a><br />
It shows google sign-in page, and when we give credentials the debug o/p window shows a log like this:</p>
<pre><code>TemporaryCredentialsReceived status
QOAuthOobReplyHandler::networkReplyFinished: Error transferring https://accounts.google.com/o/oauth2/token - server replied: Bad Request
</code></pre>
<p dir="auto">If I try set-scope(email) and grant() again, it will work nicely. whenever i logout from the google page and retry, the 1st attempt shows this error. please help.</p>
]]></description><link>https://forum.qt.io/topic/91235/google-oauth2-from-desktop-app</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 13:54:19 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/91235.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 May 2018 14:17:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Google OAuth2 from desktop app on Sat, 19 Dec 2020 03:15:35 GMT]]></title><description><![CDATA[<p dir="auto">You have to URL-decode the login code that Google sends you. Basically, install a parameter modifier before you launch the first request. Otherwise, Google will not recognize the code that they send you, because it contains URL-encoded characters. More details in this post on <a href="https://appfluence.com/productivity/how-to-authenticate-qt-google-sso/" target="_blank" rel="noopener noreferrer nofollow ugc">how to authenticate a Qt app with Google SSO</a>.</p>
<p dir="auto">Hope it helps!</p>
]]></description><link>https://forum.qt.io/post/633371</link><guid isPermaLink="true">https://forum.qt.io/post/633371</guid><dc:creator><![CDATA[ihaveajob]]></dc:creator><pubDate>Sat, 19 Dec 2020 03:15:35 GMT</pubDate></item><item><title><![CDATA[Reply to Google OAuth2 from desktop app on Sat, 13 Apr 2019 14:54:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veenusav">@<bdi>veenusav</bdi></a> I have the same issue with Qt 5.9.1 on windows.</p>
]]></description><link>https://forum.qt.io/post/522898</link><guid isPermaLink="true">https://forum.qt.io/post/522898</guid><dc:creator><![CDATA[Mostafa88]]></dc:creator><pubDate>Sat, 13 Apr 2019 14:54:18 GMT</pubDate></item><item><title><![CDATA[Reply to Google OAuth2 from desktop app on Tue, 06 Nov 2018 21:41:37 GMT]]></title><description><![CDATA[<p dir="auto">I'm facing the same problem. The steps provided in the above mentioned Qt blog post aren't detailed enough to get OAuth2 working, and the Qt Reddit example doesn't adapt easily to the Google case. If Qt folks are watching, please some help here would be appreciated. I'm trying to use OAuth2 to access Google Drive.</p>
]]></description><link>https://forum.qt.io/post/491647</link><guid isPermaLink="true">https://forum.qt.io/post/491647</guid><dc:creator><![CDATA[mjsmithers]]></dc:creator><pubDate>Tue, 06 Nov 2018 21:41:37 GMT</pubDate></item></channel></rss>