Secure authentication and single sign-on for users in the cloud.SAP Cloud Platform Identity Authentication provides you with simple and secure cloud-based access to business processes, applications, And data. It simplifies your user experience through state - of -the - art authentication mechanisms, and secure in use - on and on - the premise integration, and work the self - service options.More information can be found at: https://help.sap.com/viewer/6d6d63354d1242d185ab4830fc04feb1/Cloud/en-US/d17a116432d24470930ebea41977a888.html
Ok, let's start.
Implement login in mobile application.
Create an app with the Cordova command.
cordova create MyApp
Create and publish a SAPUI5 Application on SAP Cloud Platform Neo environment.I use my trial account to deploy it. If nothing changes, this application needs authentication to access it.And deploy's url automatically jumps to url/index.html after a successful login.e.g.:https://mobile-i320993trial.dispatcher.hanatrial.ondemand.com will became https://mobile-i320993trial.dispatcher.hanatrial.ondemand.com/index.html
Note: only after the login is successful the bowser will jump to index.html, which will be the only basis for us to verify that the mobile login is successful.
Cordova plugins add cordova - plugin - inappbrowser
OnDeviceReady () {
const loginUrl = 'https://mobile-i320993trial.dispatcher.hanatrial.ondemand.com';
const inApp = cordova.InAppBrowser.open(
loginUrl,
'_blank',
'location=no,toolbar=no',
);
inApp.addEventListener('loadstart', (event) => {
const pingUrl = event.url;
if (pingUrl.indexOf('index.html') >= 0) {
inApp.close();
alert("login success!");
}
});
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
25 | |
12 | |
12 | |
11 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 |