Ciube
Ciube

Reputation: 73

xsuaa error: The redirect_uri has an invalid domain

Considering my spring boot application and a simple web Page HTML both deployed with my no trial account in a CF without a custom domain. Both application works perfectly. After adding a xsuaa service I see this error in the authorization step:

The redirect_uri has an invalid domain. Authorization Request Error There was an error. The request for authorization was invalid.

To solve this error I try adding in the xs-security.json

"oauth2-configuration": {
    "redirect-uris": [
      "https://*.eu10-004.hana.ondemand.com"
    ]   }

Receiving same error, and using this uris:

"oauth2-configuration": {
    "redirect-uris": [
      "https://*.eu10-004.hana.ondemand.com/login/callback"
    ]   }

The auth process doesn't start and the HTML page communicate with spring boot correctly but without the auth step.

Where is the mistake and how can I solve or find consistent and update material?

Upvotes: 1

Views: 660

Answers (1)

Khazaddoom
Khazaddoom

Reputation: 96

The redirect-uris should be in the below format. please check.

"redirect-uris": [
   "https://*.cfapps.eu10-004.hana.ondemand.com/**"
 ]
}

Notice the /** in the end and *.cfapps subdomain

Upvotes: 0

Related Questions