OAuth 2.0

https://gist.github.com/mgoldchild/4f77c9ba7e1a0634046a814cefa4ea55