<?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 in SAP Foundry for API api.cf.eu10.hana.ondemand.com in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237947#M4581797</link>
    <description>&lt;P&gt;Thanks Gregor! As always, your post and answers are an inspiration!&lt;/P&gt;&lt;P&gt;I has checked your example with postman and works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Oct 2020 12:56:48 GMT</pubDate>
    <dc:creator>enric101</dc:creator>
    <dc:date>2020-10-10T12:56:48Z</dc:date>
    <item>
      <title>Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaq-p/12237943</link>
      <description>&lt;P&gt;Hi gurus,&lt;/P&gt;
  &lt;P&gt;I'm trying to get Bearer token from cloud foundry API in order to get information related with deploys ( like CF client with command mta-ops).&lt;/P&gt;
  &lt;P&gt;Unfortunally, I can't get the authorization.&lt;/P&gt;
  &lt;P&gt;Could you give some information about the authorization for this API? And if anybody have and example it would be fantastic!&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Enric&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 06:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaq-p/12237943</guid>
      <dc:creator>enric101</dc:creator>
      <dc:date>2020-10-10T06:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237944#M4581794</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;I'm not familiar with it, just in case it helps:&lt;BR /&gt;are you using your platform user and are you using &lt;BR /&gt;cf oauth-token &lt;BR /&gt;to get the jwt ?&lt;BR /&gt;Cheers,&lt;BR /&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 06:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237944#M4581794</guid>
      <dc:creator>CarlosRoggan</dc:creator>
      <dc:date>2020-10-10T06:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237945#M4581795</link>
      <description>&lt;P&gt;My pull request: &lt;A href="https://github.com/SAP-samples/cloud-cap-multitenancy/pull/1/files"&gt;cloud-cap-multitenancy/pull/1/files&lt;/A&gt; contains an example working in REST client.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 07:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237945#M4581795</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-10-10T07:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237946#M4581796</link>
      <description>&lt;P&gt;Hi Enric,&lt;/P&gt;&lt;P&gt;For access token signing and verification across your configuration, ensure that the JWT settings are exactly the same for every web node. These JWT settings are defined on each web node in the configuration file, appsetting.json. 
As defined by HTTP/1.1 [RFC2617], the application should send the access_token directly in the Authorization request header.
You can do so by including the bearer token's access_token value in the HTTP request body as 'Authorization: Bearer {access_token_value}'.
When the API call is sent with the token, Machine Learning Server attempts to validate that the user is successfully authenticated and that the token itself is not expired.
If an authenticated user has a bearer token's access_token or refresh_token that is expired, then a '401 - Unauthorized (invalid or expired refresh token)' error is returned.
If the user is not successfully authenticated, a '401 - Unauthorized (invalid credentials)' error is returned.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 10:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237946#M4581796</guid>
      <dc:creator>ennoury</dc:creator>
      <dc:date>2020-10-10T10:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237947#M4581797</link>
      <description>&lt;P&gt;Thanks Gregor! As always, your post and answers are an inspiration!&lt;/P&gt;&lt;P&gt;I has checked your example with postman and works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 12:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237947#M4581797</guid>
      <dc:creator>enric101</dc:creator>
      <dc:date>2020-10-10T12:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237948#M4581798</link>
      <description>Thanks Carlos!I didn't know this CF command, but thank you very much because it has been great for me to validate the solution. As always, learning new things thanks to your contributions.</description>
      <pubDate>Sat, 10 Oct 2020 12:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/12237948#M4581798</guid>
      <dc:creator>enric101</dc:creator>
      <dc:date>2020-10-10T12:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com</title>
      <link>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/13804443#M4842758</link>
      <description>&lt;P&gt;Hi Gregor.&lt;/P&gt;&lt;P&gt;I am trying to get the bearer token with the authorization endpoint POST &lt;A href="https://login.cf.eu20.hana.ondemand.com/oauth/token?grant_type=password" target="_blank" rel="noopener"&gt;https://login.cf.eu20.hana.ondemand.com/oauth/token?grant_type=password&lt;/A&gt; and passed CF username and password(same user used for cf login) in the body but it gives invalid_client error. With the access token I want to access the CF API /v3/audit_events to get the deployed app's audit events. When I pass the token returned by CF command cf oauth-token I am able to get the audit events. Looking to get the same token with REST client.&lt;/P&gt;&lt;P&gt;In the git example the authorization header has been passed with some static value which is confusing.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Authorization'&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'Basic Y2Y6' &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Could you please advise with the right authorization header and user to be used to fetch the bearer token?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks, Ravindra&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Aug 2024 06:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-token-in-sap-foundry-for-api-api-cf-eu10-hana-ondemand-com/qaa-p/13804443#M4842758</guid>
      <dc:creator>ravindrapawar</dc:creator>
      <dc:date>2024-08-23T06:39:11Z</dc:date>
    </item>
  </channel>
</rss>

