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

Method executeAuthenticators

executor/plugin_executor.go:32–45  ·  view source on GitHub ↗
(ctx ExecutionContext, logger log.Logger)

Source from the content-addressed store, hash-verified

30}
31
32func (e PluginExecutor) executeAuthenticators(ctx ExecutionContext, logger log.Logger) (*auth.AuthenticatorResult, error) {
33 var token *auth.AuthToken = nil
34 for _, authProvider := range e.authenticators {
35 authContext := e.authenticatorContext(ctx, logger)
36 result := authProvider.Auth(authContext)
37 if result.Error != "" {
38 return nil, errors.New(result.Error)
39 }
40 if result.Token != nil {
41 token = result.Token
42 }
43 }
44 return auth.AuthenticatorSuccess(token), nil
45}
46
47func (e PluginExecutor) convertToPluginParameters(parameters []ExecutionParameter) []plugin.ExecutionParameter {
48 result := []plugin.ExecutionParameter{}

Callers 1

CallMethod · 0.95

Calls 4

authenticatorContextMethod · 0.95
AuthenticatorSuccessFunction · 0.92
NewMethod · 0.80
AuthMethod · 0.65

Tested by

no test coverage detected