<?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: Refreshing the Access Token in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63241#M37413</link>
    <description>&lt;P&gt;I am attaching the Request and Response of API call which I am making in Postman&lt;/P&gt;&lt;P&gt;Request:&lt;/P&gt;&lt;P&gt;POST&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://access.authorize.net/oauth/v1/token" target="_blank"&gt;https://access.authorize.net/oauth/v1/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Body:&amp;nbsp;Content-Type:application/x-www-form-urlencoded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{"key":"grant_type","value":"authorization_code"},&lt;/P&gt;&lt;P&gt;{"key":"code","value":"4rkKLY"},&lt;/P&gt;&lt;P&gt;{"key":"client_id","value":"M4sPtfxKpk"},&lt;/P&gt;&lt;P&gt;{"key":"client_secret","value":"........."},&lt;/P&gt;&lt;P&gt;{"key":"platform","value":"2"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"access_token": "eyJra.....8vb0Ig",&lt;BR /&gt;"token_type": "bearer",&lt;BR /&gt;"expires_in": 28799,&lt;BR /&gt;"scope": "read write",&lt;BR /&gt;"client_status": "active"&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 06:23:12 GMT</pubDate>
    <dc:creator>orderhive</dc:creator>
    <dc:date>2018-05-31T06:23:12Z</dc:date>
    <item>
      <title>Refreshing the Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63235#M37410</link>
      <description>&lt;DIV class="adM"&gt;&lt;DIV class="im"&gt;&lt;SPAN&gt;Hello Team,&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am following this documentation :&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://developer.authorize.net/api/reference/features/oauth.html#Retrieving_the_Access_Token" target="_blank"&gt;https://developer.authorize.net/api/reference/features/oauth.html#Retrieving_the_Access_Token&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;to complete the flow of obtaining the access_token.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;When I am making a POST http request to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://access.authorize.net/oauth/v1/token" target="_blank"&gt;https://access.authorize.net/oauth/v1/token&lt;/A&gt;. I am getting the following response:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "access_token": "eyJraW.....OTeuSng8vb0Ig",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "token_type": "bearer",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "expires_in": 28799,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "scope": "read write",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "client_status": "active"&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;which is not as per the documentation.&lt;/DIV&gt;&lt;DIV&gt;The response as per doc is:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "access_token": "eyJra.....YoqAQtnQ",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "token_type": "bearer",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "refresh_token": "eyJra...syKv8w",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "expires_in": 28798,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "scope": "read write",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "refresh_token_expires_in": 28799,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "client_status": "active"&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So I am missing the refresh_token parameter in response, because of which I am not able to refresh the access_token when it expires.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there any other means to refresh the access_token?&lt;/DIV&gt;&lt;DIV&gt;Can you please guide what has to be done in this scenario?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 May 2018 05:46:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63235#M37410</guid>
      <dc:creator>orderhive</dc:creator>
      <dc:date>2018-05-31T05:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63236#M37411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/24709"&gt;@orderhive&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you passing the&amp;nbsp;grant_type=refresh_token in the url ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;POST &lt;A href="https://access.authorize.net/oauth/v1/token" target="_blank"&gt;https://access.authorize.net/oauth/v1/token&lt;/A&gt;&lt;BR /&gt;Content-Type: application/x-www-form-urlencoded&lt;BR /&gt; &lt;BR /&gt;client_id=8l57hYffFb&amp;amp;client_secret=67868687&amp;amp;&lt;STRONG&gt;grant_type=refresh_token&lt;/STRONG&gt;&amp;amp;refresh_token=eyJraWQiOiI4MGI2ZDJjM2NkZGRkMmY2NmY3MmRjYjIyMmZiNGM1MCIsImFsZyI6IlJTMjU2In0.eyJqdGkiOiI0N2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also are you trying on sandbox or prod env ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 06:01:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63236#M37411</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-05-31T06:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63237#M37412</link>
      <description>&lt;P&gt;I am using the production env.&lt;/P&gt;&lt;P&gt;I am making call to&amp;nbsp;retrieve access_token and at that time I am passing&amp;nbsp;grant_type=authorization_code in request.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 06:05:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63237#M37412</guid>
      <dc:creator>orderhive</dc:creator>
      <dc:date>2018-05-31T06:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63241#M37413</link>
      <description>&lt;P&gt;I am attaching the Request and Response of API call which I am making in Postman&lt;/P&gt;&lt;P&gt;Request:&lt;/P&gt;&lt;P&gt;POST&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://access.authorize.net/oauth/v1/token" target="_blank"&gt;https://access.authorize.net/oauth/v1/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Body:&amp;nbsp;Content-Type:application/x-www-form-urlencoded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{"key":"grant_type","value":"authorization_code"},&lt;/P&gt;&lt;P&gt;{"key":"code","value":"4rkKLY"},&lt;/P&gt;&lt;P&gt;{"key":"client_id","value":"M4sPtfxKpk"},&lt;/P&gt;&lt;P&gt;{"key":"client_secret","value":"........."},&lt;/P&gt;&lt;P&gt;{"key":"platform","value":"2"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"access_token": "eyJra.....8vb0Ig",&lt;BR /&gt;"token_type": "bearer",&lt;BR /&gt;"expires_in": 28799,&lt;BR /&gt;"scope": "read write",&lt;BR /&gt;"client_status": "active"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 06:23:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63241#M37413</guid>
      <dc:creator>orderhive</dc:creator>
      <dc:date>2018-05-31T06:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63250#M37421</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/24709"&gt;@orderhive&lt;/a&gt;&amp;nbsp;for the information .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks to be a bug in the Partner UI where its not providing the correct grant type to the client .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The team is working on the fix and will be release soon .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a workaround&amp;nbsp;&amp;nbsp;we have updated your clientID&amp;nbsp;&lt;SPAN&gt;M4sPtfxKpk with the correct grant Type .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let us know if this solves the issue .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anurag&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 20:48:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63250#M37421</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-05-31T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the Access Token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63254#M37425</link>
      <description>&lt;P&gt;Thanks for the workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is now providing proper response for clientId:&amp;nbsp;&lt;SPAN&gt;M4sPtfxKpk&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 03:41:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refreshing-the-Access-Token/m-p/63254#M37425</guid>
      <dc:creator>orderhive</dc:creator>
      <dc:date>2018-06-01T03:41:10Z</dc:date>
    </item>
  </channel>
</rss>

