Use more flexible Auth.
Merge pull request #10 from xtao/fix

Use more flexible Auth.