Added basic OAuth 2 support.