enable github
This commit is contained in:
parent
cee51ddde9
commit
a8912e82d8
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue