<?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: CAP authentication in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13678553#M4826658</link>
    <description>&lt;P&gt;Technically speaking, CAP typically relies on approuter/xsuaa instances to oversee authentication. That's maybe most common but&lt;SPAN&gt;&amp;nbsp;that's not an absolute.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Assuming that your CAP application deployment is front-ended by approuter, you should have a look at &lt;A href="https://community.sap.com/t5/technology-blogs-by-sap/using-postman-for-api-testing-with-xsuaa/ba-p/13442516" target="_self"&gt;this post by Marius Obert&lt;/A&gt;,&amp;nbsp; I haven't used this in a while, but I expect the mechanism still works. Marius writes up an important caveat on the technique -- it will not work universally -- so read carefully.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 17:27:11 GMT</pubDate>
    <dc:creator>rileyrainey</dc:creator>
    <dc:date>2024-04-22T17:27:11Z</dc:date>
    <item>
      <title>CAP authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaq-p/13678359</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I've tried developping a CAP Node.js application and deployed to CF. But once I try to access my srv from outside (for example Postman) or with my ADFS user, it gives me 401 error.&lt;/P&gt;&lt;P&gt;How do I have to authenticate in order to not getting 401 error? If I do a POST to authentication URL, I have a 200 but no token, just a HTML and I don't really know how to retrieve my token.&lt;/P&gt;&lt;P&gt;Could you help me, please?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 14:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-authentication/qaq-p/13678359</guid>
      <dc:creator>edb94</dc:creator>
      <dc:date>2024-04-22T14:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: CAP authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13678553#M4826658</link>
      <description>&lt;P&gt;Technically speaking, CAP typically relies on approuter/xsuaa instances to oversee authentication. That's maybe most common but&lt;SPAN&gt;&amp;nbsp;that's not an absolute.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Assuming that your CAP application deployment is front-ended by approuter, you should have a look at &lt;A href="https://community.sap.com/t5/technology-blogs-by-sap/using-postman-for-api-testing-with-xsuaa/ba-p/13442516" target="_self"&gt;this post by Marius Obert&lt;/A&gt;,&amp;nbsp; I haven't used this in a while, but I expect the mechanism still works. Marius writes up an important caveat on the technique -- it will not work universally -- so read carefully.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 17:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13678553#M4826658</guid>
      <dc:creator>rileyrainey</dc:creator>
      <dc:date>2024-04-22T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: CAP authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13678617#M4826668</link>
      <description>&lt;P&gt;In most of cases all deployed applications to SAP BTP is behind authorization. By default public access is restricted.&amp;nbsp; There are some work around if you really want to do it without authorization&lt;BR /&gt;&lt;BR /&gt;Anyway could you specify the Postman method? Are you trying to reach local one or the deployed version of service/application router? If it is local I think you can try to use .http file to test your requests. you can set authorization with {{me}} &lt;A href="https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookshop/test/requests.http" target="_self"&gt;Example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are trying to reach a deployed app/service on SAP BTP you will need to create a service key and authenticate by using OAuth 2.0. After creating the service key on SAP BTP cockpit you can read this documentation and get your Bearer token &amp;nbsp;&lt;A href="https://learning.postman.com/docs/sending-requests/authorization/oauth-20/" target="_self"&gt;https://learning.postman.com/docs/sending-requests/authorization/oauth-20/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 19:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13678617#M4826668</guid>
      <dc:creator>Erkan</dc:creator>
      <dc:date>2024-04-22T19:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: CAP authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13680252#M4826857</link>
      <description>&lt;P&gt;Assuming you have bound your application to XSUAA,&amp;nbsp;The Token URL for XSUAA (OAuth 2.0 service in CF) is &lt;EM&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;THE URL OBTAINED FROM THE BINDING OBJECT "URL" FIELD&amp;gt;/oauth/token&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;see: &lt;A href="https://help.sap.com/docs/btp/sap-business-technology-platform/getting-application-access-token#request" target="_self"&gt;BTP Documentation | Getting an Application Access Token&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://help.sap.com/docs/btp/sap-business-technology-platform/retrieve-credentials-for-remote-applications" target="_self"&gt;XSUAA Documentation | Retrieve Credentials for Remote Applications&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow&amp;nbsp;&lt;A href="https://cap.cloud.sap/docs/guides/deployment/to-cf#_2-using-xsuaa-based-authentication" target="_self"&gt;Capire | Using XSUAA-Based Authentication&lt;/A&gt;&amp;nbsp;for adding XSUAA to your application.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 04:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13680252#M4826857</guid>
      <dc:creator>Dinu</dc:creator>
      <dc:date>2024-04-24T04:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: CAP authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13685408#M4827623</link>
      <description>Hello Dinu, it works for me! I was wondering how to retrieve Bearer token and now I'm able to consume services deployed on CF. Thank you very much!</description>
      <pubDate>Mon, 29 Apr 2024 07:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13685408#M4827623</guid>
      <dc:creator>edb94</dc:creator>
      <dc:date>2024-04-29T07:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: CAP authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13685414#M4827624</link>
      <description>Hello Erkan! Thank you for the reply! I wasn't able to consume service because I was missing the oAuth token URL to get the token. Now that I've created service key I'm correctly getting token and it's working. Thank you very much!</description>
      <pubDate>Mon, 29 Apr 2024 07:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13685414#M4827624</guid>
      <dc:creator>edb94</dc:creator>
      <dc:date>2024-04-29T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: CAP authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13685421#M4827625</link>
      <description>Hello Riley! The content was very enriching and has helped me a lot to understanding better CAP authentication and authorization. Thank you very much!!</description>
      <pubDate>Mon, 29 Apr 2024 07:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-authentication/qaa-p/13685421#M4827625</guid>
      <dc:creator>edb94</dc:creator>
      <dc:date>2024-04-29T07:55:00Z</dc:date>
    </item>
  </channel>
</rss>

