<?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 Re: Proactively Refreshing the OAuth Access Token in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64792#M38604</link>
    <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26082"&gt;@TroyW&lt;/a&gt;&amp;nbsp;I'm having the same issue.&amp;nbsp;So what it sounds like is you need to update the refresh token after the access token expires but before the refresh token expires? This is frustrating because the response says they have the same expiration time. Are we supposed to guess at when the refresh token expires..? Run a chron that updates the refresh token every 9 hours or something?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 19:00:38 GMT</pubDate>
    <dc:creator>jdoyle112</dc:creator>
    <dc:date>2018-10-16T19:00:38Z</dc:date>
    <item>
      <title>Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64430#M38330</link>
      <description>&lt;P&gt;I'd like to refresh the access token after 90% of it's life is used up (just prior to expiration).&amp;nbsp; But everytime I do, I get the exact same (access and refresh) tokens&amp;nbsp;back, and the expiration of the access token hasn't moved a bit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to wait until after the token has expired before I can refresh it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Troy&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:27:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64430#M38330</guid>
      <dc:creator>TroyW</dc:creator>
      <dc:date>2018-09-07T16:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64441#M38339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26082"&gt;@TroyW&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes that is correct . You will need for token expired error and call the /token api with refresh token to get a new set of access and refresh tokens .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 06:39:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64441#M38339</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-09-08T06:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64457#M38349</link>
      <description>&lt;P&gt;I waited 8 hours for the access token to expire, and then I was able to refresh the access token.&amp;nbsp; So I can confirm what you said.&amp;nbsp; So about how long is the refresh token good for?&amp;nbsp; The documenation says one year, but it also says the access token has&amp;nbsp; life of 10 minutes (not 8 hours), so I'm not sure if I should trust the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Troy&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 21:49:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64457#M38349</guid>
      <dc:creator>TroyW</dc:creator>
      <dc:date>2018-09-09T21:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64458#M38350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26082"&gt;@TroyW&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like there is a bug when creating the OAuth client from our Partner Interface which is setting the expiration time of 8 hours for both access and refresh Token .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are working on a fix and will keep you posted .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 10 minutes is for the one time Auth code which is generated when the authorization flow is done&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/oauth.html#Redirecting_the_Merchant" target="_blank"&gt;https://developer.authorize.net/api/reference/features/oauth.html#Redirecting_the_Merchant&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also have a look at our sample app for OAuth at&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/oauth-sample-app" target="_blank"&gt;https://github.com/AuthorizeNet/oauth-sample-app&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 04:57:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64458#M38350</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-09-10T04:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64461#M38353</link>
      <description>&lt;P&gt;Thanks for your followup on this.&amp;nbsp; Hopefully my observations will help you track this down:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; The access_token expired after 8 hours.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; A few days later, I was able to use the refresh_token to obtain new tokens (access and refresh).&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; The token .json advertised the fact that both the access_token and refresh_token had a lifespan of 8 hours.&amp;nbsp; But my experience (point #2) showed that the refresh_token outlived those 8 hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp; From the merchant settings, I revoked my application.&amp;nbsp; The refresh_token continued to work for its full 8 hours.&amp;nbsp; This seems like a long time to continue to have access to the merchant account.&amp;nbsp; So I'm glad you're looking into why it's not 10 minutes like the documentation indicates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Troy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:47:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64461#M38353</guid>
      <dc:creator>TroyW</dc:creator>
      <dc:date>2018-09-10T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64792#M38604</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26082"&gt;@TroyW&lt;/a&gt;&amp;nbsp;I'm having the same issue.&amp;nbsp;So what it sounds like is you need to update the refresh token after the access token expires but before the refresh token expires? This is frustrating because the response says they have the same expiration time. Are we supposed to guess at when the refresh token expires..? Run a chron that updates the refresh token every 9 hours or something?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:00:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64792#M38604</guid>
      <dc:creator>jdoyle112</dc:creator>
      <dc:date>2018-10-16T19:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64793#M38605</link>
      <description>&lt;P&gt;I found that you can just ignore the advertised expiration times.&amp;nbsp; The access token lasts about 8 hours, and the refresh token is "long lived" enough so there's no problem getting a new access/refresh token combo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Troy&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 20:16:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64793#M38605</guid>
      <dc:creator>TroyW</dc:creator>
      <dc:date>2018-10-16T20:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64794#M38606</link>
      <description>&lt;P&gt;Hi All ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Due to a defect currently the refresh token are shorten to 8 hours but the refresh token will be valid for 1 year after the fix soon .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tentatively target by end of month .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 21:58:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64794#M38606</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-10-16T21:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proactively Refreshing the OAuth Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64852#M38645</link>
      <description>&lt;P&gt;Hi All ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expiration time issue should be fixed now .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you create a new OAuth client and check ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 06:53:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Proactively-Refreshing-the-OAuth-Access-Token/m-p/64852#M38645</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-10-24T06:53:40Z</dc:date>
    </item>
  </channel>
</rss>

