Comments (5)
Hi Anish,
you should be able to use any of the available archetypes to get an empty project. While there is no pre-generated integration code such as the S/4HANA VDM, you can still call the OData services as described here:
https://blogs.sap.com/2017/05/21/step-4-with-sap-s4hana-cloud-sdk-calling-an-odata-service/
Best regards
Sander
from cloud-s4-sdk-examples.
Hi Sander,
Thanks for responding, i tried running the sdk with spring boot target, but when i try to hit any api using odataquerybuilder i get some dumps:
2017-12-27 13:59:26.982 WARN 11799 --- [nio-9080-exec-2] c.s.c.s.c.s.u.UserRequestContextListener : Failed to initialize UserRequestContextListener: Failed to get current user: user not authenticated. For testing purposes, you may fall back to a mocked user by setting the environment variable "ALLOW_MOCKED_AUTH_HEADER" to "true". CAUTION: This variable must never be used in productive environments! For details on the security configuration, please refer to the SAP Cloud Platform documentation. A tutorial on the configuration is available at "https://blogs.sap.com/2017/07/18/step-7-with-sap-s4hana-cloud-sdk-secure-your-application-on-sap-cloud-platform-cloudfoundry/".
2017-12-27 13:59:26.982 WARN 11799 --- [nio-9080-exec-2] c.s.c.s.c.t.TenantRequestContextListener : Failed to initialize TenantRequestContextListener: Failed to get current tenant: user not authenticated. Note that, on SCP CF, tenant information requires authentication since it is obtained from the JWT bearer in the "Authorization" header of a request. For testing purposes, you may fall back to a mocked tenant by setting the environment variable "ALLOW_MOCKED_AUTH_HEADER" to "true". CAUTION: This variable must never be used in productive environments! For details on the security configuration, please refer to the SAP Cloud Platform documentation. A tutorial on the configuration is available at "https://blogs.sap.com/2017/07/18/step-7-with-sap-s4hana-cloud-sdk-secure-your-application-on-sap-cloud-platform-cloudfoundry/".
Could you please suggest some solution ?
Regards,
ANish
from cloud-s4-sdk-examples.
Hi Anish,
This warning informs about a missing security configuration. Please have a look at the tutorial link that is provided in the message for an explanation.
Best regards
Sander
from cloud-s4-sdk-examples.
Hi Sander,
for running app locally, i still have to conform these security protocol ?
Thanks,
Anish
from cloud-s4-sdk-examples.
Hi Anish,
you can use the mentioned variable "ALLOW_MOCKED_AUTH_HEADER" to use a mocked tenant and user for local testing. Please be aware that this should only be used for testing and that you will get an error message warning you about this every time the variable is used to get the mocked tenant or user.
You can take a look at the last paragraph in the following blog post for a detailed explanation:
https://blogs.sap.com/2017/06/23/step-5-resilience-with-hystrix/
Best regards
Sander
from cloud-s4-sdk-examples.
Related Issues (11)
- I have an issue! HOT 2
- Cast error on Change Master HOT 11
- Unable to create a change master with material association HOT 3
- 501 Error on Update HOT 11
- Can't maintain the destination URL till Service Path
- "Failed to convert response into ODataFeed: An exception of type 'EdmSimpleTypeException' occurred." HOT 1
- Invalid document data upload using AttachmentContent HOT 1
- [rl-reuse_tool-1] Violation against OSS Rules of Play HOT 1
- [rl-reuse_tool-3] Violation against OSS Rules of Play HOT 1
- [rl-reuse_tool-4] Violation against OSS Rules of Play HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-s4-sdk-examples.