fix the remote auth config