Add authenticate support
Merge pull request #3 from widop/f-authenticate

Add authenticate support