Skip to content

Conversation

@edis-uipath
Copy link
Collaborator

Add the SignalR access token to header because the library does not add it to the negotiate call.

@edis-uipath edis-uipath force-pushed the feature/signalr_add_token_to_header branch from d7113db to 70274bc Compare July 22, 2025 18:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the SignalR client configuration to add the access token directly to the request headers instead of using a token factory function. The change addresses an issue where the SignalR library doesn't automatically include the access token in negotiate calls.

  • Removes the token_factory function and access_token_factory parameter
  • Adds Authorization header with Bearer token directly to the headers dictionary

"X-UiPath-Internal-TenantId": self.context.trace_context.tenant_id, # type: ignore
"X-UiPath-Internal-AccountId": self.context.trace_context.org_id, # type: ignore
"X-UIPATH-FolderKey": self.context.folder_key,
"Authorization": f"Bearer {self._uipath._config.secret}",
Copy link

Copilot AI Jul 22, 2025

Choose a reason for hiding this comment

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

The PR title contains a typo: 'SinglaR' should be 'SignalR'.

Copilot uses AI. Check for mistakes.
@edis-uipath edis-uipath changed the title Add SinglaR token to header Add SignalR token to header Jul 22, 2025
@edis-uipath edis-uipath force-pushed the feature/signalr_add_token_to_header branch 3 times, most recently from c4e6932 to 704b9e6 Compare July 22, 2025 18:17
@edis-uipath edis-uipath changed the title Add SignalR token to header fix: add SignalR token to header Jul 22, 2025
@edis-uipath edis-uipath force-pushed the feature/signalr_add_token_to_header branch from 704b9e6 to 1db13b1 Compare July 22, 2025 18:20
@cristipufu cristipufu merged commit cea4cf7 into main Jul 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants