on 07-24-2020 10:42 AM
Hello everyone,
I'm facing a problem with the connection from a SAPUI5 frontend to my backend.
I tried to connect my frontend to my xsuaa-protected backend by destination in the SCP. When I try to request the data from the backend I get an Internal Server Error. I think it has to be an issue with the xsuaa setup, because when I try to consume data from a backend with no authentification it works perfectly.
The authentication type of the destination is OAuth2JWTBearer.
I'll add my destination configuration and my xs-app.json to the question, maybe someone can find my mistake. Also I'll be happy if there would be any documents/instruction files how to set up xsuaa correctly because I've no experience in this topic.
xs-app.json:
{
"welcomeFile": "/html/index.html",
"authenticationMethod": "route",
"logout": {
"logoutEndpoint": "/do/logout"
},
"routes": [{
"source": "^/REST/(.*)",
"target": "/$1",
"destination": "UAABackend",
"authenticationType": "xsuaa"
}, {
"source": "^/html/(.*)$",
"target": "$1",
"localDir": "webapp"
}]
}
Thank you all in advance!
Jonas
Hi,
I think what you're missing is an app router in your project. The app router handles the necessary handshakes with the XSUAA service and is able to forward the JWT token to your destination.
Some more info can be found here:
Best regards,
Geert-Jan Klaps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.