Set authHostname correctly