<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to authenticate with gDrive permanently? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275787#M52055</link>
    <description>&lt;P&gt;I followed this procedure :&amp;nbsp;&lt;A href="https://help.talend.com/reader/Ovc10QFckCdvYbzxTECexA/EoAKa_oFqZFXH0aE0wNbHQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/Ovc10QFckCdvYbzxTECexA/EoAKa_oFqZFXH0aE0wNbHQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this token is only valid for 1 hour. How can I arrange this in a Talend-job to get the latest authentication token, that I can reuse then?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Sep 2018 11:33:10 GMT</pubDate>
    <dc:creator>somersst</dc:creator>
    <dc:date>2018-09-11T11:33:10Z</dc:date>
    <item>
      <title>How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275787#M52055</link>
      <description>&lt;P&gt;I followed this procedure :&amp;nbsp;&lt;A href="https://help.talend.com/reader/Ovc10QFckCdvYbzxTECexA/EoAKa_oFqZFXH0aE0wNbHQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/Ovc10QFckCdvYbzxTECexA/EoAKa_oFqZFXH0aE0wNbHQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this token is only valid for 1 hour. How can I arrange this in a Talend-job to get the latest authentication token, that I can reuse then?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 11:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275787#M52055</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2018-09-11T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275788#M52056</link>
      <description>&lt;P&gt;You need to use a refresh token. You will need to look at Google docs for how to do this. The basic steps in Talend will be this....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Carry out initial OAuth handshake to get the Refresh token. You may need to do this manually within the Studio. They way I have done it is to return the URL it needs you to open and authenticate in a tMsgBox and then retrieve the callback URL after you have done that. Look at the Google docs to see how to retrieve the Refresh token from that.&lt;/P&gt;
&lt;P&gt;2) In your job base your call on a tLoop. While unsuccessful, try again. If it is unsuccessful, it means your token (not Refresh token) is out of date. At this point you need to use your Refresh token to generate a new token.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Use your newly generated token to access your GDrive&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 23:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275788#M52056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-11T23:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275789#M52057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm rather new to Talend, so it's not all clear to me what you describe. In one of your previous posts you described the procedure in more detail (&lt;A href="https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunateley I cannot open this url. Is it possible to send me a sample job, where I can see the different components and their values.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 07:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275789#M52057</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2018-09-12T07:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275790#M52058</link>
      <description>&lt;P&gt;Yes, that was a relatively complicated tutorial I put together and would have been useful in this situation. Unfortunately&amp;nbsp;thanks to some friends of ours in Russia, my site was attacked and destroyed. I haven't had the time over the last few months to bring it back up again.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I will see if I can get onto the box tonight and retrieve the tutorial data. If I can, I will post a "How To" on here and point you to it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 09:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275790#M52058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T09:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275791#M52059</link>
      <description>That would be great indeed.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2018 09:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275791#M52059</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2018-09-12T09:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275792#M52060</link>
      <description>&lt;P&gt;I managed to get access to my server and transferred the tutorial here......unfortunately it seemed to trigger some sort of SPAM filter and got removed. I have contacted the forum admins to see if they can sort it for me&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 23:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275792#M52060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T23:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275793#M52061</link>
      <description>&lt;DIV&gt;
 Hi thnks,
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 in the mean time you may already send it to my personal email address Stefaan.Somers@gmail.com if you want.
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Sep 2018 05:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275793#M52061</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2018-09-13T05:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275794#M52062</link>
      <description>&lt;P&gt;Hi Stefan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's been sorted. It is &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCx7qCAC#M587" target="_self"&gt;here&lt;/A&gt;. It is quite complicated in parts and was written in 2014 (so Google may ave tweaked a few things), but it should help you resolve this. The job and&amp;nbsp;config file are attached to the main post.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275794#M52062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-13T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275795#M52063</link>
      <description>I see that it works with the refresh token. But this token also apears only&lt;BR /&gt;to be valid for 24hours. Can I conclude it's impossible then to run a&lt;BR /&gt;scheduled jog daily then without any user-interaction?&lt;BR /&gt;</description>
      <pubDate>Sat, 15 Sep 2018 08:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275795#M52063</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2018-09-15T08:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275796#M52064</link>
      <description>&lt;P&gt;This is strange, Google's documentation says this about refresh tokens...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Token expiration&lt;/P&gt; 
&lt;P&gt;You must write your code to anticipate the possibility that a granted refresh token might no longer work. A refresh token might stop working for one of these reasons:&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;The user has revoked your app's access.&lt;/LI&gt; 
 &lt;LI&gt;The refresh token has not been used for six months.&lt;/LI&gt; 
 &lt;LI&gt;The user changed passwords and the refresh token contains Gmail scopes.&lt;/LI&gt; 
 &lt;LI&gt;The user account has exceeded a maximum number of granted (live) refresh tokens."&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;I wouldn't expect it to expire after 24 hours. But if yours does, then you will need to re-carry out the initial process. My belief is, and experience has shown me, that as long as you regularly make use of the refresh token it seems to last forever. So maybe ensuring your process is run once a day will do it.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 10:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275796#M52064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-15T10:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275797#M52065</link>
      <description>&lt;P&gt;Did this resolve your issue?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275797#M52065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T09:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate with gDrive permanently?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275798#M52066</link>
      <description>&lt;P&gt;It seems to be working now indeed&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-authenticate-with-gDrive-permanently/m-p/2275798#M52066</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2018-09-19T09:40:48Z</dc:date>
    </item>
  </channel>
</rss>

