Write a better mixlib-authentication