fix authentication for embedded