Add simple Bearer authenticator filter for Kube

Now with 100% more implementation. Step 1 of implementing #1430.  Sourced from https://github.com/smarterclayton/origin/commit/b3ccda08e51a4b129348244e7b6c03ccc54750f3

@erictune
The package was authenticator which seemed to satisfy the naming convention for interfaces.  Was originally authenticator.TokenAuthenticator and I shortened.  Strong preference?


> On Oct 2, 2014, at 7:26 PM, erictune <notifications@github.com> wrote:
> 
> In pkg/auth/authenticator/interfaces.go:
> 
> > +See the License for the specific language governing permissions and
> > +limitations under the License.
> > +*/
> > +
> > +package authenticator
> > +
> > +import (
> > +	"net/http"
> > +
> > +	"github.com/GoogleCloudPlatform/kubernetes/pkg/auth/api"
> > +)
> > +
> > +// Token checks a string value against a backing authentication store and returns
> > +// information about the current user and true if successful, false if not successful,
> > +// or an error if the token could not be checked.
> > +type Token interface {
> Why is this a Token rather than a TokenChecker? It takes a token as an argument.
> 
> —
> Reply to this email directly or view it on GitHub.