MCPcopy Create free account
hub / github.com/erpc/erpc / AuthenticateConsumer

Method AuthenticateConsumer

erpc/projects.go:94–99  ·  view source on GitHub ↗
(ctx context.Context, req *common.NormalizedRequest, method string, ap *auth.AuthPayload)

Source from the content-addressed store, hash-verified

92}
93
94func (p *PreparedProject) AuthenticateConsumer(ctx context.Context, req *common.NormalizedRequest, method string, ap *auth.AuthPayload) (*common.User, error) {
95 if p.consumerAuthRegistry != nil {
96 return p.consumerAuthRegistry.Authenticate(ctx, req, method, ap)
97 }
98 return nil, nil
99}
100
101func (p *PreparedProject) Forward(ctx context.Context, networkId string, nq *common.NormalizedRequest) (*common.NormalizedResponse, error) {
102 start := time.Now()

Callers 3

ProcessUnaryMethod · 0.80
ProcessQueryStreamMethod · 0.80
createRequestHandlerMethod · 0.80

Calls 1

AuthenticateMethod · 0.65

Tested by

no test coverage detected