~bigbes/core-go

906acc055dde88155cff24d3b9e9b2667414ed79 — Drew DeVault 5 years ago 4cc9b34
client: populate NodeID from service name
1 files changed, 3 insertions(+), 3 deletions(-)

M client/graphql.go
M client/graphql.go => client/graphql.go +3 -3
@@ 44,9 44,9 @@ func Execute(ctx context.Context, username string, svc string,
	}
	req.Header.Add("Content-Type", "application/json")
	auth := InternalAuth{
		Name: username,
		// TODO: Populate these better
		ClientID: "core-go",
		Name:     username,
		ClientID: config.ServiceName(ctx),
		// TODO: Populate this:
		NodeID:   "core-go",
	}
	authBlob, err := json.Marshal(&auth)