Skip to Content

xsjs with roles and authentication using xsuaa in cloudfoundry

Hi Team,

I am trying to create a XSODATA service for a POC to configure and access it from on-premise Netweaver system.

my goal is to create a xsodata service with authorizations configured in xs-app.json. (approuter should be added to XSJS module, not in the web module).

Has anyone succeeded to do a similar application?

Can anyone help me to adjust the code in xsjs module and figure out the project structure in order to place the xs-app.json and approuter script?

Note: I am able to create a XSODATA service with authentication enabled but accessible from a web module. (Web module has the approuter and xs-app.json). But I want only xsjs module without web module.

Regards,

Suchen.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jun 28 at 01:42 AM

    Hi Suchen, I have a blog about standalone app-router:

    https://blogs.sap.com/2020/06/20/consume-external-service-using-application-router/

    Just follow the concept of the app-router and connect the app router to your xsjs module.

    Cheers!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 28 at 02:54 PM

    Dear Suchen Oguri,

    if possible I would avoid creating XSOdata Services in 2020. You should look into SAP Cloud Application Programming Model and lear about it in the course Building Applications with SAP Cloud Application Programming Model.

    Best regards
    Gregor

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.