Logging into a demo server via an alias and OVH SSL Gateway

Joeri Spitaels7 months ago

Hello,
in my own code I am developing, I am using an aliased url (winnetou.qraqon.com) to demo3.traccar.org, such that I can later change the alias without changing my code.
Because it is https, the alias points to an OVH SSL Gateway, which points to demo3.traccar.org.
However, logging in using the alias is no longer possible since the Traccar demo server moved from 95.217.199.208 to 176.9.167.62 .
I now get this error:

HTTP 401 Unauthorized - WebApplicationException (SecurityRequestFilter:132 < ... < OverrideFilter:49 < ...)

I can only log directly into demo3.traccar.org.
What can be done about this?

Track-trace7 months ago

Just a question for me. When you are developing, why dont you setup your own traccar server ?

Joeri Spitaels7 months ago

By aliasing to a demo server, I am always testing on the latest version of Traccar, without having to worry about upgrades.

Anton Tananaev7 months ago

I believe a login through proxy should still work just fine.

Joeri Spitaels7 months ago

At least for me logging in via https://demo3.traccar.org works, but not via the proxy https://winnetou.qraqon.com .
Are you getting the same result?

Anton Tananaev7 months ago

Your URL just redirects to demo3. It's not a proxy.

Joeri Spitaels7 months ago

I believe it is:
My url points to 91.134.128.85 which runs an OVH SSL Gateway, redirecting to 176.9.167.62 which is demo3.
This used to work just fine before version 6 came along, when demo3 was moved to a different IP address.

Joeri Spitaels7 months ago

It does work via an incognito browser apparently, so the problem seems to be on my side.