MCPcopy
hub / github.com/dgraph-io/dgraph / getAuthMode

Function getAuthMode

edgraph/server.go:1322–1327  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1320}
1321
1322func getAuthMode(ctx context.Context) AuthMode {
1323 if auth := ctx.Value(Authorize); auth == nil || auth.(bool) {
1324 return NeedAuthorize
1325 }
1326 return NoAuthorize
1327}
1328
1329// QueryGraphQL handles only GraphQL queries, neither mutations nor DQL.
1330func (s *Server) QueryGraphQL(ctx context.Context, req *api.Request,

Callers 2

QueryGraphQLMethod · 0.85
QueryNoGrpcMethod · 0.85

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected