diff --git a/commands.go b/commands.go index 5b61b9359..ca1e3dea5 100644 --- a/commands.go +++ b/commands.go @@ -3,6 +3,7 @@ package main import ( "os" + "github.com/hashicorp/vault/builtin/credential/github" "github.com/hashicorp/vault/builtin/logical/aws" "github.com/hashicorp/vault/builtin/logical/consul" tokenDisk "github.com/hashicorp/vault/builtin/token/disk" @@ -75,6 +76,9 @@ func init() { "server": func() (cli.Command, error) { return &command.ServerCommand{ Meta: meta, + CredentialBackends: map[string]logical.Factory{ + "github": github.Factory, + }, LogicalBackends: map[string]logical.Factory{ "aws": aws.Factory, "consul": consul.Factory, diff --git a/vault/core_test.go b/vault/core_test.go index f7cd1142f..59f3d07fd 100644 --- a/vault/core_test.go +++ b/vault/core_test.go @@ -816,6 +816,6 @@ func TestCore_HandleLogin_AuditTrail(t *testing.T) { t.Fatalf("Bad: %#v", noop.RespReq[1]) } 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) } }