cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Odata model - Authentication. Something special needed?

lsteffers
Participant
0 Kudos

Hi all,

I've succeeded creating an odata service and exposing it on the hanatrial environment. One other step was to add the authentication to this. I followed the following tutorial by thomas.jung

https://developers.sap.com/tutorials/hana-cloud-cap-add-authentication.html

In all honesty, all went very well....using the authentication against trial environment. The only problem was the fact that it is all running locally. So that worked as described.

I tried to deploy the build so to speak to the cloud environment, and somehow the application in itself crashes every time (when I push the service part). Can't get it up and running anymore. The error stated is:

Unable to get xsuaa credentials. Please make sure your app is bound to a single xsuaa service instance or that you provide vcap information in the requires.uaa section.

The question is: with the setup as described in the blog, is it even possible to 'push' it all the the Sap hana cloud environment?

Kind regards and all the best!

Laurens

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate

In order to adjust your application for deployment in this tutorial, please follow the steps in this part: Deploy CAP with SAP HANA Cloud project as MTA | Tutorials for SAP Developers

lsteffers
Participant
0 Kudos

Thank you Thomas! Appreciate your help (again 🙂 ).

Will have a look at it.

KR

Laurens

lsteffers
Participant
0 Kudos

Well, almost there I think. I already deployed different versions of the app so getting errors which services which are already there.

Error determining actions to execute on service "sevenkeys-db": Service described by MTA resource "sevenkeys-db" of type [hana/hdi-shared] does not match already existing service "sevenkeys-db" of type [hanatrial/hdi-shared] and needs to be recreated. 

Use command line option "--delete-services" to enable the deletion of the existing one. 
Process failed.