MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / AdminLogin

Method AdminLogin

internal/graphql/admin_login.go:15–23  ·  view source on GitHub ↗

AdminLogin delegates to the transport-agnostic service layer and applies the admin session cookie side-effect. Resolver is a thin transport adapter. Permissions: none

(ctx context.Context, params *model.AdminLoginRequest)

Source from the content-addressed store, hash-verified

13//
14// Permissions: none
15func (g *graphqlProvider) AdminLogin(ctx context.Context, params *model.AdminLoginRequest) (*model.Response, error) {
16 gc, _ := utils.GinContextFromContext(ctx)
17 res, side, err := g.adminService().AdminLogin(ctx, service.MetaFromGin(gc), params)
18 if err != nil {
19 return nil, err
20 }
21 service.ApplyToGin(gc, side)
22 return res, nil
23}

Callers

nothing calls this directly

Calls 5

adminServiceMethod · 0.95
GinContextFromContextFunction · 0.92
MetaFromGinFunction · 0.92
ApplyToGinFunction · 0.92
AdminLoginMethod · 0.65

Tested by

no test coverage detected