Giter Site home page Giter Site logo

Comments (5)

sawoz avatar sawoz commented on September 26, 2024

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.

anishj0shi avatar anishj0shi commented on September 26, 2024

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.

sawoz avatar sawoz commented on September 26, 2024

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.

anishj0shi avatar anishj0shi commented on September 26, 2024

Hi Sander,

for running app locally, i still have to conform these security protocol ?

Thanks,
Anish

from cloud-s4-sdk-examples.

sawoz avatar sawoz commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.