Bug 125: changing how we pass the username to the authentication API

This depends on the related API change.