cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Documentation - Approuter in SAP BAS: The redirect_uri has an invalid domain.

gregorw
SAP Mentor
SAP Mentor
3,461

Hi iwona.hahn,

the Running Approuter documentation works fine when you develop in a local environment. Unfortunately it fails with this error:

The redirect_uri has an invalid domain

when using using SAP Business Application Studio.

After adding the following to xs-security.json:

,
    "oauth2-configuration": {
        "redirect-uris": [
            "https://*.trial.applicationstudio.cloud.sap"
        ]
    }

and running

cf update-service b1orders-uaa -c gen/xs-security.json

The error message is different:

Invalid redirect https://x-workspaces-ws-vktdm-app2.eu10.trial.applicationstudio.cloud.sap/login/callback did not match one of the registered values

So I had to add this to xs-security.json:

,
    "oauth2-configuration": {
        "redirect-uris": [
            "https://x-workspaces-ws-vktdm-app2.eu10.trial.applicationstudio.cloud.sap"
        ]
    }

CU
Gregor

Accepted Solutions (1)

Accepted Solutions (1)

WouterLemaire
SAP Mentor
SAP Mentor
0 Kudos

Answers (0)