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

This will require a change to clients.