<?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>Question Re: [ASK] Get Authorization Bearer Token in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189065#M4559618</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;carlosrodrigop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;thanks for your information.&lt;/P&gt;&lt;P&gt;but the problem is this token is validity for 2765 seconds&lt;/P&gt;&lt;P&gt;and need to be refreshed.&lt;/P&gt;&lt;P&gt;is there any information that you can give to me ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 14:35:10 GMT</pubDate>
    <dc:creator>former_member76287</dc:creator>
    <dc:date>2020-01-22T14:35:10Z</dc:date>
    <item>
      <title>[ASK] Get Authorization Bearer Token</title>
      <link>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaq-p/12189063</link>
      <description>&lt;P&gt;Dear Expert,&lt;/P&gt;
  &lt;P&gt;i have question , how can i add "Bearer" in our XPATH ?&lt;/P&gt;
  &lt;P&gt;this is makes issue for my authentication since it was need authorization bearer &lt;/P&gt;
  &lt;P&gt;here is my design&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1774618-2020-01-22-21-16-24-sap-cloud-platform-integration.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1774619-2020-01-22-21-17-02.png" /&gt;&lt;/P&gt;
  &lt;P&gt;this is when i do manual to get authorization token&lt;/P&gt;{"code":0,"expire":2765,"msg":"ok","tenant_access_token":"t-7c2601499925817e5e69a4d47761d0eae8983f0c"}
  &lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 14:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaq-p/12189063</guid>
      <dc:creator>former_member76287</dc:creator>
      <dc:date>2020-01-22T14:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Get Authorization Bearer Token</title>
      <link>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189064#M4559617</link>
      <description>&lt;P&gt;Sorry about the last answer.. You just need create a Header parameterr before the request message as can you see below, use a content modifier pattern and create this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1772572-2020-01-22-14-29-54-integrating-sap-commerce-cloud.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 14:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189064#M4559617</guid>
      <dc:creator>former_member608139</dc:creator>
      <dc:date>2020-01-22T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Get Authorization Bearer Token</title>
      <link>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189065#M4559618</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;carlosrodrigop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;thanks for your information.&lt;/P&gt;&lt;P&gt;but the problem is this token is validity for 2765 seconds&lt;/P&gt;&lt;P&gt;and need to be refreshed.&lt;/P&gt;&lt;P&gt;is there any information that you can give to me ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 14:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189065#M4559618</guid>
      <dc:creator>former_member76287</dc:creator>
      <dc:date>2020-01-22T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Get Authorization Bearer Token</title>
      <link>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189066#M4559619</link>
      <description>&lt;P&gt;do you need call the i-flow artifact by the orher one what you will access using this token every time&lt;/P&gt;&lt;P&gt;or use a storeged to maintain this token. &lt;/P&gt;&lt;P&gt;Storege ( &lt;A href="https://blogs.sap.com/2020/01/04/how-to-read-write-sap-cpi-datastore-from-groovy/"&gt;https://blogs.sap.com/2020/01/04/how-to-read-write-sap-cpi-datastore-from-groovy/&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;I´ll do using a internal integration process what i Called if the message return a exception during the first attempt to connect and update the data storege after the token was changed. &lt;BR /&gt;&lt;BR /&gt;The calling webservice with the token I´ll doing in other integration process called after the new token, or the principal token uf no error occurs&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 14:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189066#M4559619</guid>
      <dc:creator>former_member608139</dc:creator>
      <dc:date>2020-01-22T14:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Get Authorization Bearer Token</title>
      <link>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189067#M4559620</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;carlosrodrigop&lt;/SPAN&gt; &lt;BR /&gt;i'm prefer in my iflow&lt;/P&gt;&lt;P&gt;i'm not knowledge too much on the data storage, so is there any solution to put in same iflow ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 14:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189067#M4559620</guid>
      <dc:creator>former_member76287</dc:creator>
      <dc:date>2020-01-22T14:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] Get Authorization Bearer Token</title>
      <link>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189068#M4559621</link>
      <description>&lt;P&gt;You can do the way like this.&lt;BR /&gt;&lt;BR /&gt;Create a principal  Iflow calling to internal i-Flow process &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The first one is the process to get the token and the second one to access the webservice with the token.&lt;BR /&gt;&lt;BR /&gt;in the second one, create a exception subprocess where you will call the create token ( first process ) and the proceed to access the same webservice getting the answer from webService. I did a similar process just for redirection as can you see in my blog&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sap.com/?p=1033028" target="test_blank"&gt;https://blogs.sap.com/?p=1033028&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But in this case you always try to get a token first, the better way is store this token and just get a new one if the exception to access the webservice occurs&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 15:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ask-get-authorization-bearer-token/qaa-p/12189068#M4559621</guid>
      <dc:creator>former_member608139</dc:creator>
      <dc:date>2020-01-22T15:05:36Z</dc:date>
    </item>
  </channel>
</rss>

