Broken redirect after corteza-server auth assets export. OAuth2 error?

I wanted to change the style of my login page using this guide.

I’m running corteza as a docker container and use a reverse proxy to access the web app.

I set AUTH_DEVELOPMENT_MODE=true and AUTH_ASSETS_PATH=“/data/assets/auth” (/data directory is a docker-compose link to /srv/corteza/data).

Next in the container I called corteza-server auth assets export.

After that I could log in but not access any namespace or admin panel. After I log in, I get redirected to an empty page (https://BASE_URL/?error=invalid redirect uri&state=SOME_ID).

After that I took the .env variables out because the login screen looked weird (as if a different css file was used, or something was missing).

I’m restoring the server from a backup now after looking for a solution online. Nothing seemed to make a difference. I tried setting the auth url, restarting, deleting the assets folder.

I googeled a little bit and found out it may have something to do with OAuth2. I know corteza uses it but I tried not to touch OAuth2 settings as I know to little about it.

Can anybody tell me what I did wrong, so I don’t do the same mistake again? I’ll appriciate any tipps.

I just restored a backup from a time where it worked and still the problem prevails. I didn’t make any changes to the firewall but I’ll check there too.

docker logs corteza_server_1 is printing the same error I get in the URI.
These messages repeat in the docker log:

{"level":"warn","ts":1730288797.8193595,"msg":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client"}
{"level":"warn","ts":1730288797.927412,"msg":"invalid redirect uri"}