The app is completed, but I am still stuck with the Login Authentication task. The code which I have written, pertains to OData Service based BASIC Authentication using Username and Password(which the user enters through the app's UI). The code works fine for Valid Login credentials, but doesn't work at all, when the user enters Invalid credentials.
I came to know that instead of using BASIC Authentication (with Username and Password), either of SSO / SSL / X.509 or SAML based Authentication mechanisms needs to be used for SAP UI5 mobile app.
I Researched and found some links which speak about SSO Authentication but are either for Java EE or Microsoft .Net applications(and they are irrelevant in my context).
It would be of great help, if I could get any sort of help, either in the form of sample code or some leads.
PLEASE NOTE ->
- For the rest of the app's Business Logic, I have used OData services and " OData.read(...); " statements to fetch the data and store them in "sap.ui.model.json.JSONModel(); "model, for further manipulations and binding them to the UI controls.
- In case the SSO / SSL or any such implementation needs any additional setup or any kind of modification in the code to fetch the data, kindly highlight that as well.
- And at this instant, we do not intend to use SAP HANA Cloud Platform, as it does not fall under our project scope and requirements.
Thanks and Regards,
Suraj Kumar Y Midgay