on 01-27-2022 1:11 AM
Hi all,
I am facing problem in setting up multi tenant Portal service. I am getting
"msg":"GET request to /cp.portal/site completed with status 500 Request failed with status code 401"}
I am able to access the html5 UI directly /app/index.html, I am even able to access the backend service apis from consumer subscribed application. Only from portal service /cp.portal/site I am getting 401 error.
I have configured the routes in approuter xs-app.json
{
"welcomeFile": "/cp.portal",
"authenticationMethod": "route",
"routes": [
{
"source": "^/app/(.*)$",
"cacheControl": "no-cache, no-store, must-revalidate",
"target": "$1",
"authenticationType": "xsuaa",
"localDir": "./"
},
{
"source": "^/odata/(.*)$",
"target": "/odata/$1",
"destination": "backend",
"csrfProtection": false
},
{
"source": "^/webapp(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
},
{
"source": "^(/applications/.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}
I can share code as needed, any guidance is appreciated!
Hi Zong,
Yes, I was able to resolve it by updating the getDependency call to return the xsappname of the portal service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.