Skip to Content
2

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

Apr 19 at 12:22 AM

84

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Britt Womelsdorf
Apr 19 at 01:11 PM
2

Phil Cooley - let me check with the product owner and get back to you.

Share
10 |10000 characters needed characters left characters exceeded
Ludo Noens
Apr 23 at 01:01 AM
0

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);

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0