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

Method AdminSession

internal/grpcsrv/handlers/admin.go:53–60  ·  view source on GitHub ↗

AdminSession delegates to service.AdminSession and applies the refreshed cookie side-effect. Requires super-admin auth.

(ctx context.Context, _ *authorizerv1.AdminSessionRequest)

Source from the content-addressed store, hash-verified

51// AdminSession delegates to service.AdminSession and applies the refreshed
52// cookie side-effect. Requires super-admin auth.
53func (h *AdminHandler) AdminSession(ctx context.Context, _ *authorizerv1.AdminSessionRequest) (*authorizerv1.AdminSessionResponse, error) {
54 res, side, err := h.Service.AdminSession(ctx, transport.MetaFromGRPC(ctx))
55 if err != nil {
56 return nil, err
57 }
58 _ = transport.ApplyToGRPC(ctx, side)
59 return &authorizerv1.AdminSessionResponse{Message: res.Message}, nil
60}
61
62// AdminMeta delegates to service.AdminMeta and projects the result. Requires
63// super-admin auth.

Callers

nothing calls this directly

Calls 3

MetaFromGRPCFunction · 0.92
ApplyToGRPCFunction · 0.92
AdminSessionMethod · 0.65

Tested by

no test coverage detected