Skip to content

[SignalR] Add serverless auth-refresh binding and ServerlessHub refresh APIs - #3451

Draft
Shiying Chen (MoChilia) wants to merge 2 commits into
Azure:mainfrom
MoChilia:shiyingchen/signalr_auth_refresh_serverless
Draft

[SignalR] Add serverless auth-refresh binding and ServerlessHub refresh APIs#3451
Shiying Chen (MoChilia) wants to merge 2 commits into
Azure:mainfrom
MoChilia:shiyingchen/signalr_auth_refresh_serverless

Conversation

@MoChilia

Copy link
Copy Markdown
Member

Issue describing the changes in this PR

Summary

Adds serverless authentication-refresh support to the .NET isolated SignalR worker extension: a [SignalRRefreshInput] binding and ServerlessHub refresh APIs to extend a live connection's auth (and claims) without reconnecting.

Changes

  • New [SignalRRefreshInput] input binding (maps to the host signalRRefresh binding); binds a SignalRConnectionInfo with the refreshed access token and TokenLifetimeSeconds.
  • ServerlessHub.RefreshConnectionAuthenticationAsync / GetConnectionClaimsAsync for in-worker use by isolated hubs.
  • SignalRConnectionInfo.TokenLifetimeSeconds added (advertised at negotiate for refresh scheduling).
  • Bumped Management SDK and WebJobs extension dependencies.

Dependency

[DO NOT MERGE] Requires a Microsoft.Azure.SignalR.Management version exposing RefreshConnectionAuthenticationAsync / GetConnectionClaimsAsync, and the new WebJobs SignalR extension.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@satvu

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

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