Restructure ensure_auth method so it does not affect pre-2.7.1 servers