on 2019 Sep 18 2:57 PM
Hi All,
I'm not able to solve this problem:
In Foundry environment I've created a XSODATA services with XSUAA as auth mode.
When comment "anonymous: true" in server.js then service not works:
Error: No UAA configuration is provided in non-anonymous mode.
XSUAA run in cockpit (with correct bind) and routing exist in xs-app.json in WEB module.
Please help.
Hana 2.0 SPS04
UPDATE:
UAA service was binded also WEB module. Remove the resource from MTA file there is another error:
Server listening on port 53988
Container became healthy
{ data: 'Failed login attempt',
user: 'UNKNOWN',
I'm try to access directly to xsodata.
Thanks.
Request clarification before answering.
umberto.panico.81 can you share your solution? I'm having similar issue here. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Umberto,
Can you please share the solution. I am also in exact same situation and my requirement is also exactly like yours.Db, NodeJs, xsodata , No html / UImodule but consume xsodata in SAPUI5 App.
Br
Nilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello everyone,
Could anyone, please, share the solution to this question?
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solve boy myself. Amazing. Documentation is wrong .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Short:
I've create a CAP application with db, srv, xsjs/xsodata and web modules(crud) and xsuaa service in Foundry environment.
Configure Xs-app.json (routing), xs-security and remove authentication from server.js.
Web module works fine, but I need to expose xsodata because a Neo app will consume it (read only).
Maybe I should use a different solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I assume you mean that you get the error 'No UAA configuration is provided in non-anonymous mode.' when you set 'anonymous' to 'false' ( and not 'true' as you mentionned ).
You didn't mention anything about your 'server.js' code so just to be sure - are you actually passing along the UAA configuration ?
// configure UAA
try {
options = Object.assign(options, xsenv.getServices({ uaa: {tag: "xsuaa"} }));
} catch (err) {
console.log("[WARN]", err.message);
}
// start server
xsjs(options).listen(port);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.