Automatic select the authentication method.
Merge pull request #10 from masahide/auto-select-auth

Automatic select the authentication method.