octokit/octokit.rb — pull request #418 by joeyw (2014-01-28 05:26:22+00:00)
Title: Use OAuth app auth as basic auth without creating a new client

Taking a stab at what was discussed in https://github.com/octokit/octokit.rb/pull/397#issuecomment-33239274 and https://github.com/octokit/octokit.rb/pull/397#issuecomment-33263810.

I haven't made much time available to work on this the past couple days so it has been thrown together in a few minutes here and there. It works but could probably be done better.

Allows :require_basic_app_auth to be passed in requests which uses the
already configured OAuth application authentication as basic
authentcation for certain endpoints that need it.