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
Yeah


> On Oct 3, 2014, at 4:05 PM, erictune <notifications@github.com> wrote:
> 
> In cmd/apiserver/apiserver.go:
> 
> > @@ -162,6 +167,16 @@ func main() {
> >  		}
> >  		handler = apiserver.CORS(handler, allowedOriginRegexps, nil, nil, "true")
> >  	}
> > +
> > +	if len(*tokenAuthFile) != 0 {
> > +		auth, err := tokenfile.New(*tokenAuthFile)
> > +		if err != nil {
> > +			glog.Fatalf("Unable to load the token authentication file '%s': %v", *tokenAuthFile, err)
> > +		}
> > +		userContext := handlers.NewUserRequestContext()
> userContext holds a map with several contexts. Should its name be plural or something. Same question for UserRequestContext.
> 
> —
> Reply to this email directly or view it on GitHub.