<?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: How do I refresh API token with refresh token? in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/how-do-i-refresh-api-token-with-refresh-token/m-p/7247148#M322</link>
    <description>&lt;P&gt;Hi Dong_park,&lt;/P&gt;
&lt;P&gt;Please find the below doc&lt;/P&gt;&lt;ASIDE class="onebox allowlistedgeneric" data-onebox-src="https://apidocs.morpheusdata.com/reference/getaccesstoken"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://files.readme.io/1740d28-morpheus-symbolonly-v21.svg" class="site-icon" width="" height="" /&gt;

      &lt;A href="https://apidocs.morpheusdata.com/reference/getaccesstoken" target="_blank" rel="noopener"&gt;Morpheus Data&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    

&lt;H3&gt;&lt;A href="https://apidocs.morpheusdata.com/reference/getaccesstoken" target="_blank" rel="noopener"&gt;Provides authentication via username and password&lt;/A&gt;&lt;/H3&gt;

  &lt;P&gt;This endpoint provides authentication via username and password of a Morpheus User. The response includes a valid access token. If your current token is expired, a new one will be created and returned. Subtenant users will need to pass their...&lt;/P&gt;


  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;you can generate a new token using the existing refresh token.&lt;/P&gt;
&lt;P&gt;This endpoint also allows refreshing your current access token to get a &lt;EM&gt;new token&lt;/EM&gt;. This is done by passing your current &lt;CODE style="background : #f0f1f2;"&gt;refresh_token&lt;/CODE&gt; . This provides a way to renew your client’s session with the API, and extend the expiration date.&lt;/P&gt;
&lt;P&gt;Example:-&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;curl --request POST \
     --url 'https://&amp;lt;appliance url&amp;gt;/oauth/token?client_id=morph-api&amp;amp;grant_type=refresh_token&amp;amp;scope=write' \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data refresh_token=5bcbbf2c-29d6-4c4d-8f51-42e48242ef54
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 04:20:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2023-05-26T04:20:34Z</dc:date>
    <item>
      <title>How do I refresh API token with refresh token?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/how-do-i-refresh-api-token-with-refresh-token/m-p/7247147#M321</link>
      <description>&lt;P&gt;I couldn’t find this in API doc, when I create a token(morphapi), it also creates refresh token.&lt;/P&gt;
&lt;P&gt;I would like to refresh API token to extend the expiration date.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 19:07:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/how-do-i-refresh-api-token-with-refresh-token/m-p/7247147#M321</guid>
      <dc:creator />
      <dc:date>2023-05-25T19:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I refresh API token with refresh token?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/how-do-i-refresh-api-token-with-refresh-token/m-p/7247148#M322</link>
      <description>&lt;P&gt;Hi Dong_park,&lt;/P&gt;
&lt;P&gt;Please find the below doc&lt;/P&gt;&lt;ASIDE class="onebox allowlistedgeneric" data-onebox-src="https://apidocs.morpheusdata.com/reference/getaccesstoken"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://files.readme.io/1740d28-morpheus-symbolonly-v21.svg" class="site-icon" width="" height="" /&gt;

      &lt;A href="https://apidocs.morpheusdata.com/reference/getaccesstoken" target="_blank" rel="noopener"&gt;Morpheus Data&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    

&lt;H3&gt;&lt;A href="https://apidocs.morpheusdata.com/reference/getaccesstoken" target="_blank" rel="noopener"&gt;Provides authentication via username and password&lt;/A&gt;&lt;/H3&gt;

  &lt;P&gt;This endpoint provides authentication via username and password of a Morpheus User. The response includes a valid access token. If your current token is expired, a new one will be created and returned. Subtenant users will need to pass their...&lt;/P&gt;


  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;you can generate a new token using the existing refresh token.&lt;/P&gt;
&lt;P&gt;This endpoint also allows refreshing your current access token to get a &lt;EM&gt;new token&lt;/EM&gt;. This is done by passing your current &lt;CODE style="background : #f0f1f2;"&gt;refresh_token&lt;/CODE&gt; . This provides a way to renew your client’s session with the API, and extend the expiration date.&lt;/P&gt;
&lt;P&gt;Example:-&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;curl --request POST \
     --url 'https://&amp;lt;appliance url&amp;gt;/oauth/token?client_id=morph-api&amp;amp;grant_type=refresh_token&amp;amp;scope=write' \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data refresh_token=5bcbbf2c-29d6-4c4d-8f51-42e48242ef54
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 04:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/how-do-i-refresh-api-token-with-refresh-token/m-p/7247148#M322</guid>
      <dc:creator />
      <dc:date>2023-05-26T04:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I refresh API token with refresh token?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/how-do-i-refresh-api-token-with-refresh-token/m-p/7247149#M323</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/vsenthilkarasu"&gt;@vsenthilkarasu&lt;/A&gt;, How to get this refresh token from Morpheus plugin inside.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 08:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/how-do-i-refresh-api-token-with-refresh-token/m-p/7247149#M323</guid>
      <dc:creator>umeshverma</dc:creator>
      <dc:date>2024-12-11T08:58:06Z</dc:date>
    </item>
  </channel>
</rss>

