cancel
Showing results for 
Search instead for 
Did you mean: 

Default User appears instead of actual username on Mobile application (with HAT)

pjcools
Active Contributor

Hi

We have a current issue whereby the actual user name (firstname.lastname) does not appear when we run an application on a mobile device after building with the Fiori Mobile cloud build service. If we run the application via the Fiori Launchpad on a desktop though the user name appears correctly.

We've used the Full Stack WEB IDE, with HAT turned on to build the app for Android and I have attached screenshots showing where the name appears correctly (desktop) and where it does not appear correctly (android mobile device).

We have assertion parameters set up that pass through the firstname and lastname and the SAML trace has all of the right fields coming through.

Any assistance would be appreciated.

default-user-issue.jpgactual-user-name.png

Thanks & Regards

Phil Cooley

Accepted Solutions (0)

Answers (2)

Answers (2)

BWomelsdorf
Advisor
Advisor

phil.cooley - let me check with the product owner and get back to you.

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Kudos

This is a limitation in the local home page implementation. You are not getting a full launchpad on your device.

If you want to retrieve the login name, then you need to add code to retrieve this information from the Kapsel Logon Manager plugin.

Example below (not specifically for your case, but you'll know what to do) :

var url = appContext.applicationEndpointURL + "/";
var oHeader = {
    "X-SMP-APPCID": appContext.applicationConnectionId
};

if (appContext.registrationContext.user) {
    oHeader.Authorization = "Basic " + btoa(appContext.registrationContext.user + ":" + appContext.registrationContext.password);
}

oModel = new sap.ui.model.odata.ODataModel(url, true, null, null,oHeader);
this._setModel(oModel);

pjcools
Active Contributor
0 Kudos

Thanks lnoens - we will try this and see if this fixes the issue. Thanks, will be in touch soon.