Skip to Content
0
Jul 24, 2018 at 06:16 AM

XSA Link multiple UI5 modules together

101 Views

Hi there,

I am trying to link multiple UI5 modules together using the xs-app.json file. When I provide the access without any authentication, it works fine, but when I enable authentication I get the error : "Unable to redirect after successful authetication. Missing redirect information: Required cookie 'locationAfterLogin' missing"

Did someone face the same problem?

Here is the code of my application router files with the information about the modules:

Module 1 (Library module):

"welcomeFile": "webapp/index.html", 
"authenticationMethod": "route","routes": [{
    "source":"^(.*)$",
    "localDir":"resources/",
    "authenticationType": " xsuaa " 
}]

Module 2 (Contains an application and an embedded container)

"welcomeFile": "webapp/index.html", 
"authenticationMethod": "route", 
"routes": [{ 
    "source": "^/module1/(.*)", 
    "target": "webapp/$1", 
    "destination": "ui-module1", 
    "authenticationType": " xsuaa " 
}, { 
    "source": "^(.*)$", 
    "localDir": "resources/", 
    "authenticationType": "xsuaa"
}]


Module 3 (Contains an application that uses the container from module 2)

"welcomeFile": "/index.html", 
"authenticationMethod": "route", 
"routes": [{ 
    "source":"^/module2/(.*)", 
    "target": "webapp/$1", 
    "destination": "component-module2", 
    "authenticationType": " xsuaa " 
}, { 
    "source": "^/module1/(.*)", 
    "target": "webapp/$1", 
    "destination":"ui-module1", 
    "authenticationType": "xsuaa" 
}, { 
    "source":"^(.*)$", 
    "localDir": "resources/","authenticationType":
    "xsuaa" 
}]

In the mta.yml file all requirements contain the following settings:

name = < module1 > | < module2 >
url = ~{provided-url}
forwardAuthToken = true
group = destinations

The urls in the provides sections are created using ${default-url}