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

Function createAuthContext

auth/oauth_authenticator_test.go:424–429  ·  view source on GitHub ↗
(baseUrl url.URL, config map[string]interface{}, debug bool, writer io.Writer)

Source from the content-addressed store, hash-verified

422}
423
424func createAuthContext(baseUrl url.URL, config map[string]interface{}, debug bool, writer io.Writer) AuthenticatorContext {
425 identityUrl := createIdentityUrl(baseUrl.Host)
426 request := NewAuthenticatorRequest(fmt.Sprintf("%s://%s", baseUrl.Scheme, baseUrl.Host), map[string]string{})
427 context := NewAuthenticatorContext(config, identityUrl, "d7b087788be2154da3ad9d6bc14588f4", false, debug, *request, log.NewDebugLogger(writer))
428 return *context
429}
430
431func createIdentityUrl(hostName string) url.URL {
432 if hostName == "" {

Calls 4

NewDebugLoggerFunction · 0.92
createIdentityUrlFunction · 0.85
NewAuthenticatorRequestFunction · 0.85
NewAuthenticatorContextFunction · 0.85

Tested by

no test coverage detected