Tuesday, December 13, 2016

SAP HANA Express - XS Advanced Model - CLI Client

XS command-line tools that enable access to the SAP HANA XS advanced run-time environment.

The procedure described in the documentation did not work for me.

- Create a new organization (for example, called “devteam1”) for the development team.

# xs create-org devteam1

- Create a new space (for example, called “DEV”) for the development team. The space “DEV” will be assigned to the organization “devteam1”.

# xs create-space DEV -o devteam1

- Assign roles to the <USER> user for the run-time organization (“devteam1”) and space (“DEV”).

# xs set-org-role <USER> devteam1 OrgManager
# xs set-space-role <USER> devteam1 DEV SpaceDeveloper

All these organization / spaces can be created under "XS Advanced Administration and Monitoring Tools"  -> "Organization and Space Management"


Monday, December 12, 2016

SAP HANA Express - XS Advanced Model - Provision the UAA service with xs-security.json

Important part below, in bold:

Next we need to update our tiny_uaa service with the new authorization configuration defined in the xs-security.json file. To do that you first need to download the xs-security.json file from your project in Web IDE to a folder accessible from your command line tool. Then, we will delete the service (which we provisioned in part 10 of this tutorial (Add authentication) for testing authentication) and recreate it with the new security definitions.

Run the following xs commands:

xs delete-service tiny_uaa
xs create-service xsuaa devuser tiny_uaa -c ./xs-security.json