I find this a bit magical, plus ties the mixin to this specific use (puppetmaster or login), while I think the auth_smart_proxy method is more generic and could be useful later (I'm thinking unattended).