Skip to content

feat: add X-UiPath-Licensing-Context header passing for http clients#1343

Merged
cotovanu-cristian merged 3 commits intomainfrom
feat/licensing-transaction-header
Mar 5, 2026
Merged

feat: add X-UiPath-Licensing-Context header passing for http clients#1343
cotovanu-cristian merged 3 commits intomainfrom
feat/licensing-transaction-header

Conversation

@cotovanu-cristian
Copy link
Copy Markdown
Collaborator

@cotovanu-cristian cotovanu-cristian commented Feb 18, 2026

Summary

When a job is launched with a licensingContext internal argument, all outbound HTTP requests from the SDK now include the X-UiPath-Licensing-Context header. This enables the platform to track licensing usage per transaction.

Changes

  • ConfigurationManager — reads licensingContext from the runtime config file (internalArguments section), cached via functools.cached_property to avoid repeated file I/O
  • get_httpx_client_kwargs() — attaches the X-UiPath-Licensing-Context header to all HTTP clients when the value is present
  • constants.py — adds HEADER_LICENSING_CONTEXT
  • Rename _ssl_context.py → _http_config.py — the module now configures SSL, proxies, timeouts, and headers, so the name reflects its broader scope

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Feb 18, 2026
@cotovanu-cristian cotovanu-cristian force-pushed the feat/licensing-transaction-header branch from 38fad96 to a6e84f8 Compare March 4, 2026 17:04
@github-actions github-actions Bot removed the test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository label Mar 4, 2026
@cotovanu-cristian cotovanu-cristian marked this pull request as ready for review March 4, 2026 17:05
@cotovanu-cristian cotovanu-cristian force-pushed the feat/licensing-transaction-header branch from a6e84f8 to de0f5e0 Compare March 4, 2026 17:08
@cotovanu-cristian cotovanu-cristian changed the title feat: add licensing transactionId header passing into all http clients feat: add X-UiPath-Licensing-Context header passing into all http clients Mar 4, 2026
@cotovanu-cristian cotovanu-cristian changed the title feat: add X-UiPath-Licensing-Context header passing into all http clients feat: add X-UiPath-Licensing-Context header passing for http clients Mar 4, 2026
@cotovanu-cristian cotovanu-cristian force-pushed the feat/licensing-transaction-header branch 2 times, most recently from dc3994f to 3c5ac7d Compare March 4, 2026 21:02
@cotovanu-cristian cotovanu-cristian enabled auto-merge (squash) March 4, 2026 21:02
@cotovanu-cristian cotovanu-cristian force-pushed the feat/licensing-transaction-header branch from 3c5ac7d to 7acee80 Compare March 5, 2026 07:52
@cotovanu-cristian cotovanu-cristian force-pushed the feat/licensing-transaction-header branch from 7acee80 to 0c2a761 Compare March 5, 2026 07:56
The module now handles more than SSL context (headers, licensing context),
so the name better reflects its broader HTTP client configuration role.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@radu-mocanu radu-mocanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can reuse the ConfigurationManager approach for binding overwrites https://github.com/UiPath/uipath-python/blob/main/packages/uipath/src/uipath/_cli/_utils/_common.py#L163 to have a
unified way of reading internalArguments

@cotovanu-cristian cotovanu-cristian merged commit 1869a96 into main Mar 5, 2026
82 checks passed
@cotovanu-cristian cotovanu-cristian deleted the feat/licensing-transaction-header branch March 5, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants