When I logout the returnurl is missing the /indicium/ directory what is causing it?
Hi.
I thought I got all working on linux, but I found out that when I logout the return URL is missing /indicium/ in its path. Where do I set this or what is causing this?
Upon closer review, I don't think that there's an /indicium/ segment missing in the return URL at all. The return URL is supposed to point to the Universal GUI, not Indicium. And this value is supplied by the Universal GUI itself, I don't think that it's missing any segments.
Upon closer review, I don't think that there's an /indicium/ segment missing in the return URL at all. The return URL is supposed to point to the Universal GUI, not Indicium. And this value is supplied by the Universal GUI itself, I don't think that it's missing any segments.
So at some point then it adds the account/ui/logout if the returnurl should be the place of Universal.
Hello Freddy,
You can check the Preserve log checkbox in the developer tools to prevent the network tab from being cleared after a redirect.
I think that it's best to report a ticket for this problem and attach a .har to it containing all of the redirects that occur.
Hello Freddy,
You can check the Preserve log checkbox in the developer tools to prevent the network tab from being cleared after a redirect.
I think that it's best to report a ticket for this problem and attach a .har to it containing all of the redirects that occur.
Ok. I'll issue a ticket with the HAR file. (85818)
Hello Freddy,
I missed this in one of your previous answers, but you don't have the AllowedHeaders configured in your ReverseProxy settings. It should look like this:
I know that in a previous topic you wrote that you removed these settings in order to make the redirects work properly, but I don't think that this was the right way to fix your problem. Instead, I think you might also be missing some settings to have your reverse proxy send the X-Forwarded-Host and X-Forwarded-Proto headers to Indicium.
If you are using nginx as a reverse proxy, then you can configure these headers in the configuration file like this:
Please check our Docker deployment guide here. Even though you're not using Docker, all of the relevant configurations that you need are listed here as well.
I hope this helps.
Hello Freddy,
I missed this in one of your previous answers, but you don't have the AllowedHeaders configured in your ReverseProxy settings. It should look like this:
I know that in a previous topic you wrote that you removed these settings in order to make the redirects work properly, but I don't think that this was the right way to fix your problem. Instead, I think you might also be missing some settings to have your reverse proxy send the X-Forwarded-Host and X-Forwarded-Proto headers to Indicium.
If you are using nginx as a reverse proxy, then you can configure these headers in the configuration file like this:
Please check our Docker deployment guide here. Even though you're not using Docker, all of the relevant configurations that you need are listed here as well.
I hope this helps.
Hi Vincent,
I've added the allowed headers again. And the Nginx configuration already had these headers you've mentioned. I do not get the errors like before (so that must have had another cause).. but it doesn't redirect me back to the Universal anymore. I get to the logout page and there it stays. Clicking on the link get's me to the Indicum login page not the Universal login page. And when I login there I get the same problem as before … it opens https://191.34.68.205/indicium/ (my IP address) instead of the server.
I must be missing something here..
Hi Freddy,
I didn't have the time to try it yet, but I was checking the NGINX documentation.
In the docker guide, we set `proxy_set_header X-Forwarded-Host $proxy_add_x_forwarded_for` but that seems wrong to me. I need to check that if everything is ok there (and ask if someone can update the guide). The reason the docker guide is working, is because it is forcing the host header with: `proxy_set_header Host $host` (and I think it is not using the Reverse proxy settings in Indicium).
Can you change the line in the configuration to `proxy_set_header X-Forwarded-Host $host` (instead of the $proxy_add_x_forwarded_for)?
I will create a reproduction environment in the meantime.
Hi Freddy,
I didn't have the time to try it yet, but I was checking the NGINX documentation.
In the docker guide, we set `proxy_set_header X-Forwarded-Host $proxy_add_x_forwarded_for` but that seems wrong to me. I need to check that if everything is ok there (and ask if someone can update the guide). The reason the docker guide is working, is because it is forcing the host header with: `proxy_set_header Host $host` (and I think it is not using the Reverse proxy settings in Indicium).
Can you change the line in the configuration to `proxy_set_header X-Forwarded-Host $host` (instead of the $proxy_add_x_forwarded_for)?
I will create a reproduction environment in the meantime.
That did the trick. I can logout and it redirects me correctly to the Universal again.
Thanks!
Hello Freddy,
Thank you for your quick response. We will update our Docker Deployment guide as soon as possible.
Hi Freddy,
I didn't have the time to try it yet, but I was checking the NGINX documentation.
In the docker guide, we set `proxy_set_header X-Forwarded-Host $proxy_add_x_forwarded_for` but that seems wrong to me. I need to check that if everything is ok there (and ask if someone can update the guide). The reason the docker guide is working, is because it is forcing the host header with: `proxy_set_header Host $host` (and I think it is not using the Reverse proxy settings in Indicium).
Can you change the line in the configuration to `proxy_set_header X-Forwarded-Host $host` (instead of the $proxy_add_x_forwarded_for)?
I will create a reproduction environment in the meantime.
Well I do have another question.. because this solution worked for our cloud deployment on Ubuntu Server. However I have a local installation as well on a Mac OS server and there this setup doesn't work. I'm guess it then has something to do with docker. On the Mac OS server SQL and Indicium are running via docker, but the webserver (Nginx) however is not.
This looks similar to the issue above that the ` "ExternalPathBase": "/indicium"` needs to be configured. Is this configured correctly?
This looks similar to the issue above that the ` "ExternalPathBase": "/indicium"` needs to be configured. Is this configured correctly?
Yes. I've aligned the configs and app settings.. so this is set correctly. But on the Mac OS server it doesn't quite react the same.
Hi Freddy,
The only way I think this can happen is that you have the x-forwarded-host correctly configured in the appsettings.json for the AllowedHeaders section but the `Host` header is missing in your NGINX configuration.
Is the `proxy_set_header Host $host;` correctly set? (Probably you did, but just to make sure).
Also, I was checking the ASP.NET Core code, do you see a warning in the Indicium log by any change? Maybe you need to set the Default LogLevel for your "ErrorLog” to Warning for it to show up.
Edit
Is there a difference in the setting for the `server_name` between the Linux and the Mac OSX nginx config? It should grab the host from the request but maybe it get lost somewhere and the fallback will be the server_name setting.
I am aware this problem sounds unrelated to the host value, but the `ExternalPathBase` setting is only working if the host headers are configured correctly.
I think it's correct, and I don't get any message in Indicium log when logging out, even with default loglevel on warning.
The configuration looks fine to me. I don't see the cause yet.
Can you validate that http://local host:5000/indicium/ is working for you (so with the /indicium/ path and bypassing nginx)? Does `docker exec -it indicium cat /app/appsettings.json` show the reverse proxy settings? (To validate that the docker container was rebuild correctly). Probably it is, but just to make sure.
On your Linux machine, you were using NGINX also in Docker. Does it work if you also use that on your Mac machine? Or is that not possible to setup?
Hi @Dick van den Brink ,
I'll post below the results.
Indicium:
verification appsettings. (btw. when restarting indicium it doesn't take the new appsettings.. I really need to rebuild it).