cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to deploy xsuaa service with xs-security.json

0 Kudos
152

Hello! I am following this tutorial: https://developers.sap.com/tutorials/hana-cloud-cap-add-authentication.html 

When running "cf create-service xsuaa application MyHANAApp-auth -c xs-security.json" I get "Incorrect Usage: Invalid configuration provided for -c flag. Please provide a valid JSON object or path to a file containing a valid JSON object. "

The only option that worked was with empty json as inline configuration,

but the xs-security.json file, no matter how I change it crashes with the error above.

View Entire Topic
junwu
Active Contributor
0 Kudos

when you run that command, you have to make sure the file is available in the folder where you run the command

0 Kudos
it is
junwu
Active Contributor
0 Kudos
how does your json file look like?
0 Kudos
{ "xsappname": "ccstemplate", "tenant-mode": "dedicated", "scopes": [ { "name": "$XSAPPNAME.Admin", "description": "Admin" } ], "attributes": [], "role-templates": [ { "name": "Admin", "description": "generated", "scope-references": [ "$XSAPPNAME.Admin" ], "attribute-references": [] } ], "oauth2-configuration": { "credential-types": [ "binding-secret", "x509" ], "redirect-uris": [ "http://localhost:5000/**", "https://*.*.hana.ondemand.com/**", "https://*.launchpad.cfapps.*.hana.ondemand.com/**" ] } }