Skip to Content
0
Sep 18, 2023 at 10:51 AM

sap btp xsuaa the redirect_uri has an invalid domain

89 Views

In an attempt to develop a sample application, with a trivial frontend/backend module with approute and xsuaa authentication. During the authentication phase, the following error appears from the app route link in web page:

The ridirect_uri has an invalid domain

The project is composed by:

  1. approute: application in node (with the library approuter.js ) and xs-app.json file as:
{
"welcomeFile": "index.html",
"routes": [{
"source": "/",
"target": "/",
"destination": "app-destination"
}]

}

2. javaapp: java servlet application with a basic helloworld endpoint and a basic index.html file

3. A xs-security.json file used to create the xsuaa instance :

{
"xsappname": "javaapp",
"tenant-mode": "dedicated",
"scopes": [
{
"name": "$XSAPPNAME.Display",
"description": "display"
}
],
"role-templates": [
{
"name": "Viewer",
"description": "Required to view things in your solution",
"scope-references" : [
"$XSAPPNAME.Display"
]
}
]
}

Why I receive the message error below?

image.png

Attachments

image.png (36.5 kB)