Hello,
I am trying to use a destination for an MTA app on SAP Cloudfoundry environment. The destination is created under the Subaccount and looks like this -
The app crashes when Authentication of the destination is set to AppToAppSSO or OAuth2ClientCredentials.
ERR VError: service-destinations/authentication: No enum match for: "AppToAppSSO"
Here is a preview of the crash log -
2019-01-16T20:56:40.59+0530 [APP/PROC/WEB/0] OUT #2.0#2019 01 16 15:26:40:595#+00:00#INFO#/approuter################PLAIN##Application router version 5.7.0# 2019-01-16T20:56:40.59+0530 [APP/PROC/WEB/0] OUT #2.0#2019 01 16 15:26:40:598#+00:00#INFO#/Configuration################PLAIN##Using empty destinations to run# 2019-01-16T20:56:40.60+0530 [APP/PROC/WEB/0] OUT #2.0#2019 01 16 15:26:40:606#+00:00#INFO#/Destination service################PLAIN##Looking for the missing environment destinations metadata: generictile in destination service# 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR /home/vcap/app/node_modules/@sap/approuter/lib/utils/JsonValidator.js:30 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR throw new VError('%s%s: %s', 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR ^ 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR VError: service-destinations/authentication: No enum match for: "AppToAppSSO" 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at JsonValidator.validate (/home/vcap/app/node_modules/@sap/approuter/lib/utils/JsonValidator.js:30:11) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at /home/vcap/app/node_modules/@sap/approuter/lib/configuration/validators.js:156:19 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at Array.forEach (native) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at Object.validateDestinations (/home/vcap/app/node_modules/@sap/approuter/lib/configuration/validators.js:154:18) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at Object.attachDestinationServiceConfig (/home/vcap/app/node_modules/@sap/approuter/lib/utils/destination-utils.js:44:16) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at Object.exports.loadConfiguration (/home/vcap/app/node_modules/@sap/approuter/lib/configuration/app-config.js:23:22) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at Object.module.exports.load (/home/vcap/app/node_modules/@sap/approuter/lib/configuration.js:19:34) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at bootstrap (/home/vcap/app/node_modules/@sap/approuter/lib/bootstrap.js:52:36) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at Approuter.start (/home/vcap/app/node_modules/@sap/approuter/approuter.js:67:13) 2019-01-16T20:56:40.77+0530 [APP/PROC/WEB/0] ERR at Object.<anonymous> (/home/vcap/app/node_modules/@sap/approuter/approuter.js:144:6) 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! Linux 4.15.0-39-generic 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! argv "/home/vcap/deps/0/node/bin/node" "/home/vcap/deps/0/bin/npm" "start" 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! node v6.14.4 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! npm v3.10.10 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! code ELIFECYCLE 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! ui5@0.0.1 start: `node node_modules/@sap/approuter/approuter.js` 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! Exit status 1 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! Failed at the ui5@0.0.1 start script 'node node_modules/@sap/approuter/approuter.js'. 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! Make sure you have the latest version of node.js and npm installed. 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! If you do, this is most likely a problem with the ui5 package, 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! not with npm itself. 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! Tell the author that this fails on your system: 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! node node_modules/@sap/approuter/approuter.js 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! You can get information on how to open an issue for this project with: 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! npm bugs ui5 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! Or if that isn't available, you can get their info via: 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! npm owner ls ui5 2019-01-16T20:56:40.78+0530 [APP/PROC/WEB/0] ERR npm ERR! There is likely additional logging output above. 2019-01-16T20:56:40.79+0530 [APP/PROC/WEB/0] ERR npm ERR! Please include the following file with any support request: 2019-01-16T20:56:40.79+0530 [APP/PROC/WEB/0] ERR npm ERR! /home/vcap/app/npm-debug.log 2019-01-16T20:56:40.80+0530 [APP/PROC/WEB/0] OUT Exit status 1
Why is it happening? Are these authentication methods not supported?
If the Authentication property is set to NoAuthentication, the app starts.
Thanks.