Collaborative Extension: Part 3-Setup Connection from SCP to SAP Jam
3 min readMay 8, 2017
In this Part
We are going to setup the connection between SCP and SAP Jam so we can leverage SAP Jam APIs within SCP.
Configure SAP Jam (1st Handshake)
In SAP HANA Cloud Platform, identity information is provided by identity providers (IdP), and not stored on SAP HANA Cloud Platform itself. You can have a different IdP for each account you own, and this is configurable using the Cockpit
Get SCP Trust Secrets
- Log on SCP Cockpit and go to Security → Trust.
- In Trust Management, click Edit.
- Select Custom for Configuration Type.
- Copy Local Provider Name e.g.
https://hanatrial.ondemand.com/p1942320001trial
and paste into text editor for later use. - Copy Signing Certificate and paste into text editor for later use. (Click Generate Key Pair if it is blank)
- Click Save.
- Click Get Metadata to download Custom Identity Provider Metadata file
Add SCP Trust Secrets to SAP Jam
- Go to SAP Jam (via the link you bookmarked before)
- Click the gear icon on the top toolbar (Account Settings) and select Admin.
- On the left navigation, click + icon at the Integrations item and select SAML Trusted IDPs.
- Click Register your SAML Trusted IdP button.
- In Metadata File, select Custom Identity Provider Metadata file you downloaded before.
- Paste your Local Provider Name into IDP ID and paste the Signing Certificate to X509 Certificate (Base64) field.
- Check the Enabled field and click Register.
- Make sure the Trusted IdP is enabled.
Configure SCP to call Jam Service via OAuth
Get OAuth Client Key
- In SAP Jam, click OAuth Client under Integrations in the left navigation menu.
- Click Add OAuth Client.
- Input the following:
Name: SAP Cloud Platform
Integration URL: https://hanatrial.ondemand.com - Click Save.
- At the OAuth client you just created, click View.
- Copy the Key string to your text editor for later use.
Configure SCP
- Go back to SCP, and set the trust Configuration Type back to Default and Save.
- Go to Connectivity → Destinations and click New Destination.
- Input the following:
Name:jam-internet-http
Type:HTTP
Description:SAP JAM API
URL:https://developer.sapjam.com
Proxy Type:Internet
Authentication:OAuth2SAMLBearerAssertion
Audience:cubetree.com
Client Key: (input your Key string)
Token Service URL:https://developer.sapjam.com/api/v1/auth/token
- Add the following additional properties:
TrustAll:true
WebIDEEnabled:true
WebIDEUsage:odata_gen
- Click Save.
Access SAP Jam API from SCP
- Go to https://developer.sapjam.com/ODataDocs/ui#metadata_introduction
- Click Try!
- Copy the Requested URL.
- Open Web IDE and create a new project from template.
- Select List Report Application.
- Input
Jam
in Project Name and Title then click Next. - In Data Connection page, select Service URL.
- Choose SAP JAM API from the dropdown and paste api/v1/OData in the URL and click Test.
- You should now see the list of available services meaning the conenction is working fine. You can now cancel and exit.