setup authentication plugin