we are publishing our website that we have developed over Umbraco 15, so far we have developed all the pages and populated the contents. all this have been done using a SQL RDS on AWS and where the pages are on our local computer. it works just fine by visiting https://localhost/umbraco, however when porting it to docker over AWS fargate the backend page doesn’t display correctly and shows :
“error:invalid_request
error_description:The specified ‘redirect_uri’ is not valid for this client application.
error_uri:https://documentation.openiddict.com/errors/ID2043
we tried multiple ways to resolve it by modifying the appsettings.json
The issue is that you are using the same database for multiple instances. For OpenId, a redirect_url is required and Umbraco handles this by registering the redirect_url of the first request is receives in the database. When you use that database from another URL, you will get the error you described.
Setting the “BackOfficeHost” should override whatever the database thinks is the application URL and is used directly in the OpenId manager. You should set the hostname that the Docker instance actually sees as the host, for example it may be “localhost” or something similar.
I think the address should not end with a forward slash as that seems to be hardcoded in many places in the source code of Umbraco, so I would honestly try setting it to a few different values to see if that solves the problem: