Search code examples
odataprovisioningsap-cloud-platform

SAP Cloud Platform: OData provisioning. How do I setup for an external user?


I've set up access to an SAP Gateway OData service using the OData Provisioning service. This works fine with Basic Authentication when I'm logged into SAP Cloud Platform.

The question is: How do I set this up for the outside world, as I set up the same call via postman and I'm getting a Note: Your browser does not support JavaScript or it is turned off. Press the button to proceed. error.


Solution

  • Usually the Your browser does not support JavaScript or it is turned off. Press the button to proceed. error is due to a failure to authenticate and actually redirects you to the login page.

    I think the following page explains the flow: https://help.sap.com/viewer/a7c6d8a0bd1f415887f6246d8cf8e68e/Cloud/en-US/eeef740e63d143059892c93ed3cb473f.html

    Basically, to call you OData Provisioning service, you will need to provide credentials to a SAP Cloud Platform user account that holds the GW_Role (I think) and not to your SAP Gateway system.

    Now talking about Postman, if you want to execute a POST/PUT/DELETE, you will first need to fetch a X-CSRF-Token before being able to execute any kind of changes in your data.

    https://help.sap.com/viewer/a7c6d8a0bd1f415887f6246d8cf8e68e/Cloud/en-US/d2e706bd63c043c7b7ae1d2dc830bb79.html

    Hope this helps