cancel
Showing results for 
Search instead for 
Did you mean: 

Consume SF API in HTML5 Application using SAML.

Former Member
0 Kudos

Hi All,

I am trying to consume SF ODATA API in my HTML5 Application to get the employee table. I am able to do by using basic authentication but now I have to do oAuth/SSO in production environment. I have gone through all blog but not able to solve it?

ElijahM
Advisor
Advisor
0 Kudos

Hi Ravi,

Can you share a little more detail on what your issue is? What API are you accessing, and what difficulties you are facing?

Have you read the OData API documentation https://help.sap.com/doc/a7c08a422cc14e1eaaffee83610a981d/PRODUCTION/en-US/SF_HCM_OData_API_DEV.pdf ?
And followed the excellent blog by Arjit Das based on that documentation https://blogs.sap.com/2017/03/05/how-to-initiate-an-oauth-connection-to-successfactors-employee-cent... ?

OAuth is definitely far more complicated than Basic Auth, so there are many hurdles you may be facing.

Regards,
Elijah

Former Member
0 Kudos

Hi Elijah,

Thank you for your reply and documents. I am using this docs only but I have some doubts.

1. While doing oAuth2 Registration there is a field for Application URL. We have SAP UI5 Application in which I am calling SF API and this apps deployed on cloud portal.

2. For Basic auth, it is working fine but not for SAML2.0. Cloud portal URL or deployed app url what to use?

What URL is should here to register application.

Regards,

Ravi

Former Member
0 Kudos

Hi Folks,

any answer to my question. Please help me in achieving this.

Regards,

Ravi Shankar.

Accepted Solutions (0)

Answers (1)

Answers (1)

i834235
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ravi,

RE 1) if ur SAP Cloud Platform account is paired with SFSF instance then take look at portal service, under portal service you will see pre-defined destination used by portal service to make OData calls. You can create your destination on the similar basis.

2) if your configuring extension apps as custom navigation link on SFSF side then you should be using portal site URL not deployed apps URL.

Take look at this blog :- > https://blogs.sap.com/2016/06/27/securing-successfactors-extensions-on-sap-hana-cloud-platform/

Regards

Manju

Former Member
0 Kudos

Hello Manju,

I am facing one problem, in the manage oauth part what Application URL I should provide. Is it the lauchpad url as I have 5 application on the lauchpad. When I am trying to do so it is giving me an error.

Regards,

Ravi Shankar.