Kyle Beachill, a regular contributor to our forum, provided this nice class to authenticate using oAuth2.

For help and more information join our forum, follow the blog, follow me on Twitter