UiPath Documentation
uipath-cli
latest
false
UiPath-CLI-Benutzerhandbuch
Wichtig :
Dieser Inhalt wurde maschinell übersetzt. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

uip is connectors builder auth

Syntax and options for configuring and inspecting a connector's authentication scheme with the Integration Service connector builder — auth set, auth get, and auth system create/list.

This page covers uip is connectors builder auth, the command group that defines a connector's own authentication scheme — how the connector itself talks to its vendor API. This is a design-time concern, distinct from a tenant connection, which is a runtime instance of that scheme (a specific user's credentials against the scheme this page configures). For connector directory resolution, the design-vs-published distinction, and the overall authoring flow, see Concepts on the parent page.

Zusammenfassung

uip is connectors builder auth set --auth-type <type> [scheme-specific options] [--connector-dir <path>]
uip is connectors builder auth get [--connector-dir <path>]
uip is connectors builder auth system create --type <type> [--vendor-path <path>] [--method <method>] [--next-resource <selector>] [--path <path>] [--connector-dir <path>]
uip is connectors builder auth system list [--connector-dir <path>]
uip is connectors builder auth set --auth-type <type> [scheme-specific options] [--connector-dir <path>]
uip is connectors builder auth get [--connector-dir <path>]
uip is connectors builder auth system create --type <type> [--vendor-path <path>] [--method <method>] [--next-resource <selector>] [--path <path>] [--connector-dir <path>]
uip is connectors builder auth system list [--connector-dir <path>]

None of these options are tenant-scoped — there is no --tenant flag anywhere in this group. Everything here edits or reads the local connector directory only.

uip is connectors builder auth set

Configure authentication on the connector. One --auth-type is required; which of the remaining options apply depends on that type. Re-running against an already-configured connector fails unless --force is passed, which applies the diff to existing config entries instead of erroring — this exists because a first attempt can be rejected (for example, a scope-options change that conflicts with existing config) and needs to be retried.

Hinweis:

Use this to wire authentication on an existing connector, for any of the auth types below, or to swap an existing connector's auth type (--force). Define OAuth/JWT scopes here too, via --scope-options/--required-scopes/--preselected-scopes — there is no separate auth scope command. Do not use this to create a connector from scratch — use builder init first. Do not use this for non-auth configuration entries — use builder init preset apply or builder state patch (see Trigger & state).

Optionen

LongWertGiltFürBeschreibung
--auth-type <type>one of the types belowAlleRequired. The auth flow to configure.
--connector-dir <path>PfadAlleConnector directory. Same resolution order as Concepts.
--forceMarkierenAlleApply diffs to existing config entries instead of erroring when the connector is already configured.
--authorization-url <url>urlOAuthLogin/consent URL.
--token-url <url>urlOAuth, JWTToken endpoint.
--token-refresh-url <url>urlOAuthDie Standardeinstellung ist --token-url.
--token-revoke-url <url>urlOAuthToken revoke endpoint.
--scope <scope>stringOAuth, JWT, firstPartyServiceSpace-delimited scope string. For firstPartyService, the platform scope the minted token carries.
--jwt-claim <spec>name[=value][;label=...][;hint=...], repeatablejwtOauth, jwtOauth2JWT assertion claim. A bare name (no =value) is created required-and-empty so the connection user fills it at connect time; label/hint set the connection-form display name and hint text.
--jwt-header <spec>same syntax as --jwt-claim, repeatablejwtOauth, jwtOauth2JWT assertion header.
--aws-service-name <name>stringawsv4SigV4 service name constant (for example polly, connect); sets the hidden aws.service.name default.
--scope-options <json>JSON array of {description, value}OAuth, JWTMultiselect scope choices offered to the connection user.
--scope-options-file <path>PfadOAuth, JWTRead --scope-options JSON from a file instead of inline.
--required-scopes <csv>comma-separatedOAuth, JWTScopes the user cannot deselect.
--preselected-scopes <csv>comma-separatedOAuth, JWTScopes pre-checked by default.
--scope-delimiter <char>stringOAuth, JWTScope separator. Default: space.
--scope-hint-text <text>stringOAuth, JWTHint text shown under the scope selector.
--scope-screen-type <type>stringOAuth, JWTconfigScreenType for the scope entry. Default: pre.
--api-key-param-name <name>stringcustomApiKeyRequired vendor header or query parameter name.
--api-key-location <where>header | querycustomApiKeyWhere the key is sent. Default: header.
--api-key-prefix <prefix>stringcustomApiKeyLiteral prefix prepended to the key value.
--key-config-name <key>stringcustomApiKeyInternal config key. Default: custom.api.key.
--key-config-display-name <name>stringcustomApiKeyUI label. Default: API Key.
--validation-vendor-path <path>Pfadall (optional)Add a provisionAuthValidation test call at this vendor path.
--validation-method <method>HTTP-Methodeall (optional)Method for the auth-validation call. Default and recommended: GET — the probe must be read-only and must not change vendor data.
--auth-header <kv>ConfigName=VendorHeader, repeatablemulti-header schemesExtra static auth header, created as a plain text config the connection user fills in. For schemes needing more than one credential header (for example iContact's API-AppId/API-Username).
--secret-auth-header <kv>ConfigName=VendorHeader, repeatablemulti-header schemesLike --auth-header, but the config is created as an encrypted password field. For credential headers such as API-Password.

--auth-type accepts one of: oauth2, oauth2Pkce, oauth2ClientCredentials, oauth2Password, oauth2PrivateKeyJwt, oauth1, basic, jwtOauth, jwtOauth2, custom, customApiKey, personalAccessToken, awsv4, googleServiceAccount, rsaCertificate, none, firstPartyService, fpsUserDelegatedAccess, fpsRobotAccess.

firstPartyService is UiPath platform-injected identity: the platform mints and refreshes the token, binding {host}/{account}/{tenant} to platform headers instead of connection-time config fields (those three fields are actually removed from the config set when you switch to this type, as shown in the example below).

Each auth type writes a different config bundle — the examples below each show a real, type-specific result rather than one generic shape.

Beispiele

# OAuth2 authorization-code flow
uip is connectors builder auth set --auth-type oauth2 \
  --authorization-url https://acme.com/oauth/authorize \
  --token-url https://acme.com/oauth/token \
  --scope 'read write'
# OAuth2 authorization-code flow
uip is connectors builder auth set --auth-type oauth2 \
  --authorization-url https://acme.com/oauth/authorize \
  --token-url https://acme.com/oauth/token \
  --scope 'read write'
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "oauth2",
    "AuthenticationTypes": ["oauth2"],
    "TypeOauth": true,
    "OauthRefreshResourceCreated": true,
    "ConfigChanges": {
      "added": ["oauth.api.key", "oauth.api.secret", "oauth.token.url"],
      "updated": [],
      "unchanged": []
    }
  }
}
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "oauth2",
    "AuthenticationTypes": ["oauth2"],
    "TypeOauth": true,
    "OauthRefreshResourceCreated": true,
    "ConfigChanges": {
      "added": ["oauth.api.key", "oauth.api.secret", "oauth.token.url"],
      "updated": [],
      "unchanged": []
    }
  }
}
# customApiKey, sent as a header
uip is connectors builder auth set --auth-type customApiKey --api-key-param-name X-API-Key
# customApiKey, sent as a header
uip is connectors builder auth set --auth-type customApiKey --api-key-param-name X-API-Key
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "customApiKey",
    "AuthenticationTypes": ["customApiKey"],
    "TypeOauth": false,
    "ApiKeyConfigAdded": true,
    "ApiKeyParamAdded": true,
    "KeyConfigName": "custom.api.key",
    "ConfigChanges": { "added": ["custom.api.key"], "updated": [], "unchanged": [] }
  }
}
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "customApiKey",
    "AuthenticationTypes": ["customApiKey"],
    "TypeOauth": false,
    "ApiKeyConfigAdded": true,
    "ApiKeyParamAdded": true,
    "KeyConfigName": "custom.api.key",
    "ConfigChanges": { "added": ["custom.api.key"], "updated": [], "unchanged": [] }
  }
}
# Re-apply a config diff that was rejected on first try
uip is connectors builder auth set --auth-type customApiKey --api-key-param-name X-API-Key --force
# Re-apply a config diff that was rejected on first try
uip is connectors builder auth set --auth-type customApiKey --api-key-param-name X-API-Key --force
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "customApiKey",
    "ConfigChanges": {
      "added": [],
      "updated": [{ "key": "custom.api.key", "diff": { "displayOrder": [3, 1] } }],
      "unchanged": []
    }
  }
}
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "customApiKey",
    "ConfigChanges": {
      "added": [],
      "updated": [{ "key": "custom.api.key", "diff": { "displayOrder": [3, 1] } }],
      "unchanged": []
    }
  }
}
# OAuth 2.0 JWT Bearer (Salesforce-style): claims with a value are pre-filled,
# bare claims are filled in by the connection user
uip is connectors builder auth set --auth-type jwtOauth \
  --token-url https://login.salesforce.com/services/oauth2/token \
  --jwt-claim aud=https://login.salesforce.com \
  --jwt-claim iss \
  --jwt-claim sub
# OAuth 2.0 JWT Bearer (Salesforce-style): claims with a value are pre-filled,
# bare claims are filled in by the connection user
uip is connectors builder auth set --auth-type jwtOauth \
  --token-url https://login.salesforce.com/services/oauth2/token \
  --jwt-claim aud=https://login.salesforce.com \
  --jwt-claim iss \
  --jwt-claim sub
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "jwtOauth",
    "AuthenticationTypes": ["jwtOauth"],
    "TypeOauth": true,
    "ConfigChanges": {
      "added": [
        "oauth.api.key", "oauth.api.secret", "oauth.callback.url", "oauth.token.url",
        "jwt.base64.encoded.key", "jwt.claim.aud", "jwt.claim.iss", "jwt.claim.sub"
      ],
      "updated": [],
      "unchanged": []
    }
  }
}
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "jwtOauth",
    "AuthenticationTypes": ["jwtOauth"],
    "TypeOauth": true,
    "ConfigChanges": {
      "added": [
        "oauth.api.key", "oauth.api.secret", "oauth.callback.url", "oauth.token.url",
        "jwt.base64.encoded.key", "jwt.claim.aud", "jwt.claim.iss", "jwt.claim.sub"
      ],
      "updated": [],
      "unchanged": []
    }
  }
}
# UiPath first-party service auth (platform-injected identity)
uip is connectors builder auth set --auth-type firstPartyService --scope OrchestratorApiUserAccess
# UiPath first-party service auth (platform-injected identity)
uip is connectors builder auth set --auth-type firstPartyService --scope OrchestratorApiUserAccess
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "firstPartyService",
    "AuthenticationTypes": ["firstPartyService"],
    "TypeOauth": false,
    "ConfigChanges": {
      "added": [
        "oauth.scope", "oauth.basic.header", "oauth.user.token",
        "oauth.user.refresh_time", "oauth.user.refresh_interval"
      ],
      "updated": [],
      "unchanged": [],
      "removed": ["host", "account", "tenant"]
    }
  }
}
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "firstPartyService",
    "AuthenticationTypes": ["firstPartyService"],
    "TypeOauth": false,
    "ConfigChanges": {
      "added": [
        "oauth.scope", "oauth.basic.header", "oauth.user.token",
        "oauth.user.refresh_time", "oauth.user.refresh_interval"
      ],
      "updated": [],
      "unchanged": [],
      "removed": ["host", "account", "tenant"]
    }
  }
}
# No authentication
uip is connectors builder auth set --auth-type none
# No authentication
uip is connectors builder auth set --auth-type none
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "none",
    "AuthenticationTypes": ["none"],
    "TypeOauth": false,
    "ConfigChanges": { "added": [], "updated": [], "unchanged": [] }
  }
}
{
  "Code": "AuthConfigured",
  "Data": {
    "AuthType": "none",
    "AuthenticationTypes": ["none"],
    "TypeOauth": false,
    "ConfigChanges": { "added": [], "updated": [], "unchanged": [] }
  }
}

uip is connectors builder auth get

Read the connector's full authentication setup: type, config entries (secrets redacted), lifecycle resources, and FPS header bindings.

Hinweis:

Use this to inspect the connector's current authentication block. To change it, use auth set.

Optionen

LongWertBeschreibung
--connector-dir <path>PfadConnector directory. Same resolution order as Concepts.

Beispiel

uip is connectors builder auth get
uip is connectors builder auth get

Datenform (--output json)

{
  "Code": "AuthInfo",
  "Data": {
    "ConnectorRoot": "/work/my-acme-connector",
    "Authentication": {
      "Type": "jwtOauth",
      "AuthenticationTypes": ["jwtOauth"],
      "TypeOauth": true
    },
    "Configs": [
      {
        "key": "oauth.token.url",
        "configScreenType": null,
        "required": true,
        "hidden": true,
        "defaultValue": "https://login.acme.com/oauth2/token"
      },
      {
        "key": "jwt.claim.iss",
        "configScreenType": "pre",
        "required": true,
        "defaultValue": null
      }
    ],
    "ConnectionFormFields": [],
    "Resources": {
      "oauthOnTokenRefresh": false,
      "provisionAuthValidation": true
    },
    "FpsBindings": null,
    "TemplateBindings": null
  }
}
{
  "Code": "AuthInfo",
  "Data": {
    "ConnectorRoot": "/work/my-acme-connector",
    "Authentication": {
      "Type": "jwtOauth",
      "AuthenticationTypes": ["jwtOauth"],
      "TypeOauth": true
    },
    "Configs": [
      {
        "key": "oauth.token.url",
        "configScreenType": null,
        "required": true,
        "hidden": true,
        "defaultValue": "https://login.acme.com/oauth2/token"
      },
      {
        "key": "jwt.claim.iss",
        "configScreenType": "pre",
        "required": true,
        "defaultValue": null
      }
    ],
    "ConnectionFormFields": [],
    "Resources": {
      "oauthOnTokenRefresh": false,
      "provisionAuthValidation": true
    },
    "FpsBindings": null,
    "TemplateBindings": null
  }
}

Secret-typed config values (passwords, API keys) are never included — only the config's metadata (key, whether it's required/hidden, non-secret default).

uip is connectors builder auth system

Manage connector-lifecycle ("system") resources — auth-time hooks such as provisionAuthValidation, onProvision, and oauthOnTokenRefresh. These live under auth because they're auth-lifecycle hooks: element.json entries with no separate SR (Semantic Resource) file, unlike a normal API endpoint created by activity create (or an ad-hoc SR-less endpoint via activity create --skip-sr — see Activity & hooks).

uip is connectors builder auth system create

Hinweis:

Use this to wire a lifecycle hook endpoint — auth-validation, onProvision, or a token-refresh call. Do not use this to add a normal API endpoint — use builder activity create instead.

Optionen
LongWertBeschreibung
--type <type>stringRequired. System resource type, for example provisionAuthValidation, onProvision, oauthOnTokenRefresh.
--vendor-path <path>PfadVendor API path for this hook.
--method <method>HTTP-MethodeDefaults to POST when the type requires a method.
--next-resource <selector>METHOD:/pathChain to a next resource, for example GET:/organization.
--path <path>PfadExplicit resource path — must match the type's override path when that type declares one.
--connector-dir <path>PfadConnector directory. Same resolution order as Concepts.
Beispiel
uip is connectors builder auth system create --type provisionAuthValidation --vendor-path /me
uip is connectors builder auth system create --type provisionAuthValidation --vendor-path /me
Datenform (--output json)
{
  "Code": "SystemResourceCreated",
  "Data": {
    "ResourceName": "provisionAuthValidation",
    "ConnectorRoot": "/work/my-acme-connector",
    "ResourceType": "provisionAuthValidation",
    "ElementEntriesAdded": ["provisionAuthValidation"],
    "ElementEntriesSkipped": [],
    "SkipSr": true
  }
}
{
  "Code": "SystemResourceCreated",
  "Data": {
    "ResourceName": "provisionAuthValidation",
    "ConnectorRoot": "/work/my-acme-connector",
    "ResourceType": "provisionAuthValidation",
    "ElementEntriesAdded": ["provisionAuthValidation"],
    "ElementEntriesSkipped": [],
    "SkipSr": true
  }
}

uip is connectors builder auth system list

Lists the connector's element.json entries whose type is a system resource.

Optionen
LongWertBeschreibung
--connector-dir <path>PfadConnector directory. Same resolution order as Concepts.
Beispiel
uip is connectors builder auth system list
uip is connectors builder auth system list
Datenform (--output json)
{
  "Code": "SystemResourceList",
  "Data": {
    "Resources": [
      { "name": "provisionAuthValidation", "type": "provisionAuthValidation" }
    ]
  }
}
{
  "Code": "SystemResourceList",
  "Data": {
    "Resources": [
      { "name": "provisionAuthValidation", "type": "provisionAuthValidation" }
    ]
  }
}

Siehe auch

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben