backported OAuth authenticator
Merge pull request #582 from nelenkov/master

backported OAuth authenticator