Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Single Sign-on in SAPUI5 application

$
0
0

Hi,

 

I have created a SAP UI5 application which is for approval of the PRs by an approver.

 

Pic20.jpg

 

Previously, the approvers had R/3 access and they use to approve using the transaction ME54N. For entering R/3, they had single sign on (no password was required). It was taking windows login.

 

Now, in case of above application, the data is brought through oData Gateway access.

 

I have used the following code for oData access in Controller.JS file.

 

//    var oModel = new sap.ui.model.odata.ODataModel(url, true, "<user>", "<password>");

 

     var oModel = new sap.ui.model.odata.ODataModel( "http://XXXXXXXXXXXXXXXXXX:8000/sap/opu/odata/sap/ZEBAN_FINAL1_SRV",false);

 

     oView.setModel(oModel);

 

Now, when I am trying to run the UI5 application in internet explorer, it is asking for R/3 login id and password again for gateway access before starting the application instead of directly taking the user id and password -

 

Pic21.jpg

 

How it is possible to get single-sign on for the above application also. I did not get any suitable material in the net in regard to this. It will be of great help if anybody provide any guidance in the regard as I am new to sapui5.

 

Regards,

 

Subhabaha Pal


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>