Skip to Content
avatar image
Former Member

How to consume odata in Angular Js

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.


    Add comment
    10|10000 characters needed characters exceeded