enable github

This commit is contained in:
Mitchell Hashimoto 2015-04-01 15:48:56 -07:00
parent cee51ddde9
commit a8912e82d8
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package main
import ( import (
"os" "os"
"github.com/hashicorp/vault/builtin/credential/github"
"github.com/hashicorp/vault/builtin/logical/aws" "github.com/hashicorp/vault/builtin/logical/aws"
"github.com/hashicorp/vault/builtin/logical/consul" "github.com/hashicorp/vault/builtin/logical/consul"
tokenDisk "github.com/hashicorp/vault/builtin/token/disk" tokenDisk "github.com/hashicorp/vault/builtin/token/disk"
@ -75,6 +76,9 @@ func init() {
"server": func() (cli.Command, error) { "server": func() (cli.Command, error) {
return &command.ServerCommand{ return &command.ServerCommand{
Meta: meta, Meta: meta,
CredentialBackends: map[string]logical.Factory{
"github": github.Factory,
},
LogicalBackends: map[string]logical.Factory{ LogicalBackends: map[string]logical.Factory{
"aws": aws.Factory, "aws": aws.Factory,
"consul": consul.Factory, "consul": consul.Factory,

View File

@ -816,6 +816,6 @@ func TestCore_HandleLogin_AuditTrail(t *testing.T) {
t.Fatalf("Bad: %#v", noop.RespReq[1]) t.Fatalf("Bad: %#v", noop.RespReq[1])
} }
if len(noop.Resp) != 2 || !reflect.DeepEqual(noop.Resp[1], lresp) { if len(noop.Resp) != 2 || !reflect.DeepEqual(noop.Resp[1], lresp) {
t.Fatalf("Bad: %#v", noop.Resp[1], lresp) t.Fatalf("Bad: %#v %#v", noop.Resp[1], lresp)
} }
} }