Skip to content

Clean up HubClientConnector configuration#36328

Merged
peppy merged 3 commits intoppy:masterfrom
bdach:hub-connector-fluff
Jan 13, 2026
Merged

Clean up HubClientConnector configuration#36328
peppy merged 3 commits intoppy:masterfrom
bdach:hub-connector-fluff

Conversation

@bdach
Copy link
Copy Markdown
Collaborator

@bdach bdach commented Jan 13, 2026

This is a bunch of assorted minor changes that fell out from me looking into SignalR authentication for the refereeing client implementation. If anything here offends, relevant commits or the PR in its entirety can be dropped - any known functional concerns that these changes would fix are at most theoretical.

Replace manual specification of Authorization header with SignalR-provided provider property

The property used here is listed in SignalR documentation. Not sure why it hasn't been used from the start, it's at least 8 years old.

While in practice this probably has zero bearing on anything, theoretically the way proposed in this commit is more correct. As the documentation states, with some transports the token may need to be renewed if it expires, which providing it via a header as done previously would not achieve, while going through API.AccessToken via the accessor every time will perform a token refresh if one is needed.

Remove no longer needed header alias for version hash

Clean-up from an old change (see #28892 (comment)).

Simplify proxy configuration

More clean-up while I'm here. Can't say I tested this at all.

bdach added 3 commits January 13, 2026 11:03
…rovided provider property

The property used here is listed in SignalR documentation:

	https://learn.microsoft.com/en-us/aspnet/core/signalr/authn-and-authz?view=aspnetcore-10.0#bearer-token-authentication

While in practice this probably has zero bearing on anything,
theoretically the way proposed in this commit is more correct.
As the documentation states, with some transports the token may need to
be renewed if it expires, which providing it via a header as done
previously would not achieve, while going through `API.AccessToken`
every time will perform a token refresh if one is needed.
@bdach bdach self-assigned this Jan 13, 2026
@bdach bdach added code quality Fixes code quality. Not visible to the end user. area:online functionality Deals with online fetching / sending but don't change much on a surface UI level. quick fix Tasks which were taken on because they take no time to fix labels Jan 13, 2026
@peppy peppy self-requested a review January 13, 2026 10:31
@peppy peppy enabled auto-merge January 13, 2026 10:33
@peppy peppy disabled auto-merge January 13, 2026 11:17
@peppy peppy merged commit d1a231c into ppy:master Jan 13, 2026
7 of 9 checks passed
@github-project-automation github-project-automation bot moved this from Inbox to Done in osu! team task tracker Jan 13, 2026
@bdach bdach deleted the hub-connector-fluff branch January 13, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:online functionality Deals with online fetching / sending but don't change much on a surface UI level. code quality Fixes code quality. Not visible to the end user. quick fix Tasks which were taken on because they take no time to fix size/S

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants