Proxy/Authentication bypass for Mobile app

KubaDavid2 years ago

What URLs does the mobile app use to connect to the server? I'm trying to set it up with Authentik so that the main WebUI is protected but I want to let the apps communicate. There's a setting for that in Authentik called "unauthenticated paths" and it accepts regexes but I'm not sure what needs to be let through the authentication gateway in order to report to the Traccar server.

I tried to use this in "unauthenticated paths" but it didn't work:

^/api([/?].*)?$
Anton Tananaev2 years ago

Why not allow full domain?

KubaDavid2 years ago

What a quick response!

The full domain is traccar.mydomain.com and that's where the UI lives but I want that behind the authentication gateway (Authentik solution). So I'll just let trough the gateway some parts of the domain for example if there's regex match to "/api" in the URL then it doesn't have to authenticate and goes straight to Traccar server.