<?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: Authentication with SAP BTP while developing in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/authentication-with-sap-btp-while-developing/qaa-p/13714071#M4830905</link>
    <description>&lt;P&gt;Hi, in those types of situations (CORS errors, non-SAP backend) I've found I've had to use a proxy middleware when running my app in BAS like this one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.npmjs.com/package/@sap-ux/backend-proxy-middleware" target="_blank" rel="noopener"&gt;https://www.npmjs.com/package/@sap-ux/backend-proxy-middleware&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 03:57:55 GMT</pubDate>
    <dc:creator>PeterRoehlen</dc:creator>
    <dc:date>2024-05-28T03:57:55Z</dc:date>
    <item>
      <title>Authentication with SAP BTP while developing</title>
      <link>https://community.sap.com/t5/technology-q-a/authentication-with-sap-btp-while-developing/qaq-p/13713823</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I'll try to be as brief as possible - I have a front-end and back-end applications that i'm developing in SAP Business Application Studio.&lt;/P&gt;&lt;P&gt;Back-end is a node.js server using the express npm package.&lt;/P&gt;&lt;P&gt;Front-end is a fiori application.&lt;/P&gt;&lt;P&gt;I am utilizing "async await fetch" in my Fiori Controller Javascript to GET and POST from the Node.Js express server.&lt;/P&gt;&lt;P&gt;I have applied necessary CORS configuration to the Node.Js express server.&lt;/P&gt;&lt;P&gt;I run both applications from the terminal in Business Application Studio. I can successfully GET the endpoint on the back-end and retrieve results in the browser (because i'm logged into my S-User and authenticate with BTP).&lt;/P&gt;&lt;P&gt;However, when my front-end app does the GET request, I get 401, so I add Authentication header with Basic + base64string with username:password. Then I get CORS error.&lt;/P&gt;&lt;P&gt;Kindly explain the method for authenticating between two apps while developing in the BAS?&lt;/P&gt;&lt;P&gt;I've attached code screenshots.&lt;/P&gt;&lt;P&gt;Much Appreciated,&lt;/P&gt;&lt;P&gt;Reinhardt&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 23:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authentication-with-sap-btp-while-developing/qaq-p/13713823</guid>
      <dc:creator>Reinhardt</dc:creator>
      <dc:date>2024-05-27T23:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with SAP BTP while developing</title>
      <link>https://community.sap.com/t5/technology-q-a/authentication-with-sap-btp-while-developing/qaa-p/13714071#M4830905</link>
      <description>&lt;P&gt;Hi, in those types of situations (CORS errors, non-SAP backend) I've found I've had to use a proxy middleware when running my app in BAS like this one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.npmjs.com/package/@sap-ux/backend-proxy-middleware" target="_blank" rel="noopener"&gt;https://www.npmjs.com/package/@sap-ux/backend-proxy-middleware&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 03:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authentication-with-sap-btp-while-developing/qaa-p/13714071#M4830905</guid>
      <dc:creator>PeterRoehlen</dc:creator>
      <dc:date>2024-05-28T03:57:55Z</dc:date>
    </item>
  </channel>
</rss>

