https://gist.github.com/telamon/1127459
user pass auth