Skip to Content
1
Jul 06, 2020 at 01:39 PM

HANA XSA Fiori Launchpad XSUAA issue

220 Views

Dear Experts,

I'm using the Fiori Launchpad site in my HANA XSA project and have strange situation which I like to get solved:

In the xs-app.json of each html5 module I have set xsuaa in the route for the module pages itself. I need that so that the token can be passed on to the required modules. No problem if each html5 module is started individually.

Now if I deploy the launchpad, this becomes a problem. When clicking on a tile the launchpad receives the message:

Therefore the application can't start. So if I set 'none' in the route of the html5 app, all works. So there must be something missing. Below is the xs-app.json with the working setting for the launchpad (none):

{
    "welcomeFile": "webapp/index.html",
    "authenticationMethod": "route",
    "routes": [{
        "source": "^/httpsRedirector_api/(.*)$",
        "target": "/redir/$1",
        "destination": "coreNode_api",
        "csrfProtection": false,
        "authenticationType": "xsuaa"
    }, {
        "source": "^/sap/bc/lrep(.*)$",
        "target": "/sap/bc/lrep$1",
        "destination": "coreNode_api",
        "authenticationType": "xsuaa"
    }, {
        "source": "/(.*)",
        "localDir": "resources",
        "authenticationType": "none",
        "replace": {
            "pathSuffixes": [
                "index.html"
            ],
            "services": {
                "sapui5_sb": {
                    "tag": "ui5"
                }
            }
        }
    }]
}

The document which is received causing the '<' error is this (of course js was expected not html):

<html>
<head>
<link rel="shortcut icon" href="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/>
<script>
document.cookie="ARFRG-131ah2njwye5uqas1yex97or91="+encodeURIComponent(location.hash)+";path=/";document.cookie="ARLOC-131ah2njwye5uqas1yex97or91="+encodeURIComponent(location.href.split('#')[0].split(location.host)[1])+";path=/";document.cookie="signature=D8t2hvy%2Bqqcw%2F%2Fc0aNoLJLeBAxA%3D;path=/";location="https://hana-server.biz:39032/uaa-security/oauth/authorize?response_type=code&client_id=sb-na-669fc091-19bd-4db6-b8dd-782ab5a981d3!i2&redirect_uri=https%3A%2F%2Fhana-server.biz%3A51153%2Flogin%2Fcallback"
</script>
</head>
</html>

Calling that in the browser will lead to a redirect that ends nowhere. Any idea? Of course I need to have all routes on xsuaa...

Gunter

Attachments