<?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: Get Token  OAuth 2.0 Authorization Code SAP API in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462396#M4668074</link>
    <description>&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;first check if you can use the out of box solution &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/04/25/fetch-oauth-token-in-rest-is-now-out-of-the-box/"&gt;Fetch Oauth Token in REST is now Out of The Box | SAP Blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;is this what you are looking for? You can do the look up either from java map or from udf. Store the token in dynamic configuration and use it in the channel. &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2015/09/11/yes-rest-lookup-is-possible-in-pi/"&gt;Yes Rest LookUp is possible in PI | SAP Blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/09/20/rest-look-up-using-udf-in-sap-po/"&gt;REST Look Up using UDF in SAP PO | SAP Blogs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 12:28:57 GMT</pubDate>
    <dc:creator>Muniyappan</dc:creator>
    <dc:date>2021-04-19T12:28:57Z</dc:date>
    <item>
      <title>Get Token  OAuth 2.0 Authorization Code SAP API</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaq-p/12462395</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am developing a custom java application to call SAP API in Cloud.&lt;/P&gt;
  &lt;P&gt;Is there any example of JAVA code to get authorization token? &lt;/P&gt;
  &lt;P&gt;/oauth/authorize?response_type=code&lt;/P&gt;
  &lt;P&gt;I am able to get Bearer token from Postman app but I want to get it directly from my Java app. &lt;/P&gt;
  &lt;P&gt;I searched SAP documentation, but I didn't find a complete example.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 10:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaq-p/12462395</guid>
      <dc:creator>Schalager1</dc:creator>
      <dc:date>2021-04-19T10:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get Token  OAuth 2.0 Authorization Code SAP API</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462396#M4668074</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;first check if you can use the out of box solution &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/04/25/fetch-oauth-token-in-rest-is-now-out-of-the-box/"&gt;Fetch Oauth Token in REST is now Out of The Box | SAP Blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;is this what you are looking for? You can do the look up either from java map or from udf. Store the token in dynamic configuration and use it in the channel. &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2015/09/11/yes-rest-lookup-is-possible-in-pi/"&gt;Yes Rest LookUp is possible in PI | SAP Blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/09/20/rest-look-up-using-udf-in-sap-po/"&gt;REST Look Up using UDF in SAP PO | SAP Blogs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 12:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462396#M4668074</guid>
      <dc:creator>Muniyappan</dc:creator>
      <dc:date>2021-04-19T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get Token  OAuth 2.0 Authorization Code SAP API</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462397#M4668075</link>
      <description>&lt;P&gt;Hi Muniyappan,&lt;/P&gt;&lt;P&gt;I am not using SAP PI. I am using Ecplise to develop a java console application that call rest web services of SAP API business hub.&lt;/P&gt;&lt;P&gt;I have uaa.url, client id and client secret. What i am triying is get oauth2 token to call web service thru java code.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 12:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462397#M4668075</guid>
      <dc:creator>Schalager1</dc:creator>
      <dc:date>2021-04-19T12:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get Token  OAuth 2.0 Authorization Code SAP API</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462398#M4668076</link>
      <description>&lt;P&gt;is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/viewer/6d3eac5a9e3144a7b43932a1078c7628/Cloud/en-US/4dca41a875904a209c49796705a4cc67.html"&gt;Full Example Implementation&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 14:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462398#M4668076</guid>
      <dc:creator>Muniyappan</dc:creator>
      <dc:date>2021-04-19T14:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Token  OAuth 2.0 Authorization Code SAP API</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462399#M4668077</link>
      <description>&lt;P&gt;This example works but it's for version 1.0 of OAUTH. &lt;/P&gt;&lt;P&gt;I need OAuth 2.0 (there are more steps).&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462399#M4668077</guid>
      <dc:creator>Schalager1</dc:creator>
      <dc:date>2021-04-21T09:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get Token  OAuth 2.0 Authorization Code SAP API</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462400#M4668078</link>
      <description>&lt;P&gt;may be you can take look at this code base. &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/SAP/cloud-security-xsuaa-integration" target="test_blank"&gt;https://github.com/SAP/cloud-security-xsuaa-integration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 16:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-oauth-2-0-authorization-code-sap-api/qaa-p/12462400#M4668078</guid>
      <dc:creator>Muniyappan</dc:creator>
      <dc:date>2021-04-21T16:30:38Z</dc:date>
    </item>
  </channel>
</rss>

