on 12-28-2023 6:26 AM
Hello Experts,
Regards,
Varun Vichare.
Hi champion,
Have you created an instance of the Integration Process Runtime according to the following help documentation:
You must retrieve an OAuth2 token before you can make any requests to any sender end-points or any APIs from your tenant.
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ivan,
Ours is the BTP neo environment, I have followed the below KBA to generate Oauth token. But still I am not able to make a call to the CPI value mapping API.
Regards,
Varun Vichare.
Hi Hi champion,
Are you sure you are sending both the CSRF-Token and the Bearer token on the request?
To get he CSRF token, you have to send a GET request to the API end-point's root path with the following:
URL: https://<tmn-endpoint>/api/v1/<br>HEADERS:<br>X-CSRF-Token: Fetch<br>Authorization: Bearer <token>
That should produce the following result on the response's HEADERS like so:
...
X-CSRF-Token: AC0E6612C8...........814DB844F4F99
....
Once you have obtained the CSRF token and bearer token you should be able to send it in the header to gain access to Neo/tmn APIs.
BTW:
1) CSRF token is only mandatory if you are sending any method other than GET. So, modifying requests do request this token
2) On Neo, you must create the OAuth2 client before you are able to call APIs from tmn. That's the document you linked here. Check the following blog as it has detailed steps on how to create and use such credentials on Neo:
https://blogs.sap.com/2023/01/26/configuring-client-id-and-secret-on-neo-environment/
Here, the blogger explains how to create the oauth2 client for an iflow end-point - hence the application chosen is iflmap. Since you are interested on CPI APIs, then you must chose the tmn application.
Here's another blog where you can find information on how to get access and test CPI APIs via Postman (snippet 1 & 2):
https://blogs.sap.com/2023/05/23/snippets-from-a-very-small-neo-to-cloudfoundry-cpi-migration/
If you are still facing issues, please send the request and response in RAW format here from your REST Client such as Postman.
Best regards,
Ivan
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.