Skip to Content

How to consume odata in Angular Js

Dec 26, 2017 at 09:27 AM


avatar image

I have designed HTML5 file and i am trying to access the odata via Angular JS file
there is a authentication Problem

How can i pass the username and password via Angular Js to Sap system

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ivan Mirisola
Dec 26, 2017 at 05:47 PM

Hi Raghuram,

If your AngularJS app is running on SAP Cloud Platform then the user persistence store is either SAP ID Service or your own SAML 2.0 compatible IdP. Either way, the user ID will need to map to the corporate user used by the SAP system. In such cases you can configure your SAP Cloud Connector (HANA Cloud Connector) to perform Principal Propagation (which is the way the used ID gets propagated to the backend system). This way your users will authenticate once on the IdP and since there is mutual trust between SAP System, Connector and SCP, the backend accepts the user id as authentication - thus you have SSO.

Can't say how this would work out when you aren't using SCP. Maybe you would need to enable SAML protocol at the SAP System and expose the OData service, making sure your AngularJS app uses a SAML 2.0 authentication of some sort.


10 |10000 characters needed characters left characters exceeded