cancel
Showing results for 
Search instead for 
Did you mean: 

xsjs with roles and authentication using xsuaa in cloudfoundry

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

jhodel18
Active Contributor
0 Kudos

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!

0 Kudos

Hi jhodel18,

Thanks for the answer.

I am able to attach the approuter module to my application with some roles.

Regards,

Suchen.

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Dear sucheno,

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