Configuring authentication for a client and a server