MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / GrootHttpLogin

Function GrootHttpLogin

testutil/client.go:567–569  ·  view source on GitHub ↗

GrootHttpLogin logins using the groot account with the default password and returns the access JWT

(endpoint string)

Source from the content-addressed store, hash-verified

565// GrootHttpLogin logins using the groot account with the default password
566// and returns the access JWT
567func GrootHttpLogin(endpoint string) *HttpToken {
568 return GrootHttpLoginNamespace(endpoint, 0)
569}
570
571func GrootHttpLoginNamespace(endpoint string, namespace uint64) *HttpToken {
572 token, err := HttpLogin(&LoginParams{

Callers 6

TestSchemaSubscribeFunction · 0.92
TestGraphQLResponseFunction · 0.92
TestAuthFunction · 0.92
TestCORSFunction · 0.92
TestNamespacesQueryFieldFunction · 0.92

Calls 1

GrootHttpLoginNamespaceFunction · 0.85

Tested by 6

TestSchemaSubscribeFunction · 0.74
TestGraphQLResponseFunction · 0.74
TestAuthFunction · 0.74
TestCORSFunction · 0.74
TestNamespacesQueryFieldFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…