Api should allow session creation with auth disabled

It would be very nice if the api would just work exactly the same with and without auth enabled.

This would mean all integrations that use the api work exactly the same if I decide that I want to disable auth on my pi-hole instance.

Background is: for all applications in my home lab I use a Traefik proxy, that triggers a loginscreen once for all apps under the same subdomain. xyz.svrooij.io So if I used pihole and then some other web interface there is no login. This is why I disabled auth on all servers behind this reverse proxy.

Home assistant is able to pass through without auth, but then the api won’t work in the way the integration expects, because it seems to not create a session when asked to. Would it be possible to have the api support sessions with auth disabled?

Same issue here, right now it will be solved by being the single system that is not authenticated the normal way.

This is easier to include for now, but I’ll look for a replacement later if it is not be possible to do this.