Improved handling of authentication failures

[#47141137]