After logging on, you are redirected to a *Where-To?*page with one of the following error messages:
- The redirect_uri is invalid
- The redirect_uri has an invalid domain
- Invalid redirect: {URI} does not match one of the registered values
- Client registration is missing redirect_uri
- Client registration contains invalid redirect_uri
The redirect_uris
configuration value for the used service instance has not been properly configured.
-
Identify the affected application. The affected application is the application on which you want to be redirected after the logon process.
-
Identify the affected service instance of the xsuaa type.
- Cloud Cockpit: Find out which service instance of the xsuaa type was bound to the application.
- CF CLI: Check the environment of the application, and then find xsuaa to retrieve the name of the service instance: cf env <application-name>
-
Identify the xsappname of the service instance (which is mandatory for xs-security.json).
- Existing xs-security.json: You can find the xsappname of the xs-security.json file that was used to create the service instance.
- Cloud Cockpit: Create a service key and retrieve the xsappname from it; remove the section after the exclamation mark - for example, myapp!b123 -> xsappname: myapp. For more information, see SAP Note 3319310.
- CF CLI: Check the environment of the application (see step 2), retrieve the xsappname from the corresponding service, and then remove the section after the exclamation mark.
-
Prepare the security descriptor (xs-security.json).
- For more information, see Application Security Descriptor Configuration Syntax.
-
Update the redirect_uris attribute of the corresponding service instance (within oauth2-configuration).
- Cloud Cockpit: Click Update in the service, and then provide the xs-security.json file, as required.
- CF CLI: Use cf update-service to update the service instance and provide the required xs-security.json file: cf update-service <instance-name> -c <path-to-xs-security.json>
Note: It is important to provide the complete xs-security.json file during the update as partial updates are not supported.