Implementing custom authentication and authorization strategies was documented in a post on our blog.
In addition to that, our GitHub integration is open source and available on GitHub.