fix api4gui authentication