brandur/heroku-agent — pull request #4 by brandur (2014-09-29 20:03:18+00:00)
Title: Add subroutine for normalizing `Authorization` header

Heroku API credentials can be specified in a number of ways:

Authorization: Bearer
Authorization: Basic ">
Authorization: Basic :">

This system adds normalization so at least the first two schemes above, which
are always equivalent, can be grouped so that if a 2FA token is procured for
one, it will stay valid for the other.