Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 19 at 01:11 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 23 at 01:01 AM

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

    Add comment
    10|10000 characters needed characters exceeded