Skip to Content
0

Consume SF API in HTML5 Application using SAML.

Jun 02, 2017 at 10:54 AM

162

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded

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-central/ ?

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

Regards,
Elijah

0
Former Member
Elijah Martinez

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

0
Former Member

Hi Folks,

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

Regards,

Ravi Shankar.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Manju Venkatesh
Aug 21, 2017 at 05:17 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0