MCPcopy Create free account
hub / github.com/UiPath/uipathcli / toAuthorization

Method toAuthorization

executor/http_executor.go:284–289  ·  view source on GitHub ↗
(token *auth.AuthToken)

Source from the content-addressed store, hash-verified

282}
283
284func (e HttpExecutor) toAuthorization(token *auth.AuthToken) *network.Authorization {
285 if token == nil {
286 return nil
287 }
288 return network.NewAuthorization(token.Type, token.Value)
289}
290
291func (e HttpExecutor) Call(ctx ExecutionContext, writer output.OutputWriter, logger log.Logger) error {
292 uri, err := e.formatUri(ctx.BaseUri, ctx.Route, e.pathParameters(ctx), ctx.Parameters.Query())

Callers 1

CallMethod · 0.95

Calls 1

NewAuthorizationFunction · 0.92

Tested by

no test coverage detected