Refactor delegate "needAuthenticateUser:" to "authenticateWithAllowedMethods:"