Added support for the source parameter when authenticating

Fixes #34.