on 07-06-2015 10:19 PM
Hi Experts,
We are having the below observations regarding the SAP Logon plugin. Kindly share your inputs for the same. Since we are not using the default SAP UI screens for registration, we are passing the required user credentials and server parameters as part of the default context passed to sap.Logon.init function.
Note that the logon plugin version we are using is 3.8.1(SMP SDK SP08 PL01).
Thank You in advance.
Cheers,
Vigil
I was also getting the ERR_REG_FAILED issue. It was because the passcodes in context did not match with the ones in customShowScreen. See below. Make sure you have the same passcode in all five places.
var context = {
"serverHost": SMP_SERVER_NAME,
"https": "false",
"serverPort": SERVER_PORT,
"communicatorId": "REST",
"user": userName,
"password": password,
"passcode": "Aaaaaa123", //note hardcoding passwords and unlock passcodes are strictly for ease of use during development
//once set can be changed by calling sap.Logon.managePasscode()
"unlockPasscode": "Aaaaaa123"
};
function customShowScreen(screenId, screenEvents, currentContext) {
if (screenId =="SCR_SSOPIN_SET") {
screenEvents.onskip();
return true;
}
else if (screenId =="SCR_UNLOCK") {
var context = {
unlockPasscode: "Aaaaaa123"
}
screenEvents.onsubmit(context);
return true;
}
else if (screenId =="SCR_REGISTRATION") {
screenEvents.onsubmit(currentContext.registrationContext);
return true;
}
else if (screenId =="SCR_SET_PASSCODE_MANDATORY") {
var contextOne = {
passcode: "Aaaaaa123",
passcode_CONFIRM: "Aaaaaa123"
}
screenEvents.onsubmit(contextOne);
return true;
}
else if (screenId =="SCR_SET_PASSCODE_OPT_ON") {
screenEvents.ondisable();
return true;
}
else if (screenId =="SCR_SET_PASSCODE_OPT_OFF") {
var contextTwo = {};
screenEvents.onsubmit(contextTwo);
return true;
}
return false; //skip the default value
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Virgil,
I cannot assist with 1 or 3, but I found this for an Android Kapsel error. It is not yet published since it does not reference a location of this code, but perhaps it will help.
Set the PREFERENCE_ID_USEAFARIA Shared Preference to false as follows:
Editor pEditor = prefs.edit();
pEditor.putBoolean(SharedPreferenceKeys.PREFERENCE_ID_USEAFARIA.toString(), false);
pEditor.commit();
Tracy Barkley
Sr. Technical Support Engineer
SAP Active Global Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.