-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get authenticated user id from negotiate endpoint to use in Azure Function having Service bus input trigger binding and Azure SignalR Service Output binding #1688
Comments
Whom(user-id) do you want to send to in the function?
|
About Q2, management SDK provides similar functionality comparing with function bindings. Management SDK is a lightweight server that can be hosted in app service/functions. I think you can choose either one to work with. Basically for output bindings, they both works on the REST API(transient mode). The benefit of management SDK is that it provides better returns than output bindings. For example, if you need to call And for input bindings, management SDK helps less on reading the request.
|
In reply to #1640 (comment):
You can find docs of Azure SignalR bindings here. There are also some bindings not listed there, which are for multiple endpoint cases. You can find those specific bindings here
"Azure SignalR Service only supports this SDK for ASP.NET CORE SignalR clients." This sentence is a little bit confusing. It still means the SignalR client whose server-side technique is ASP.NET Core SignalR. You can use this SDK instead of Azure function bindings to work with ReactJS client. Will improve the doc. |
Thanks a lot for your clarification, patience and considering updating the guide to clear the confusion. |
Improve a confusing statement. The original statement can also be interpreted as this SDK only supports SignalR clients based on ASP.NET Core C#, which confuses users. #1688
* Update Actions to use dotnet build (#1663) * Update windows.yml * Add configurable options (#1654) * Update CI to enable net7.0 preview builds (#1677) * Support net7.0 * update osx/ubuntu. * revert common package upgrade. * update build-source guide and revert net7.0 in src. * Add OrTimeout() * Fix build warnings and add net6 samples (#1676) * Fix build warning * Update docs * Fix build failure * Fix test failure * Fix vlunerability issue (#1678) * Fix vlunerability issue * fix filters * fix filters * Update use-signalr-service.md (#1683) * Change emulator to net6.0 (#1682) * Change emulator to net6.0 * Fix test * Add filter property...... (#1686) * Add filter * Add multiPayload case * Adding comments * Update management-sdk-guide.md (#1689) Improve a confusing statement. The original statement can also be interpreted as this SDK only supports SignalR clients based on ASP.NET Core C#, which confuses users. #1688 * Expose InstanceId in ClientConnectionContext (#1692) * Fix `HubConnectionContext.UserIdentifier` is null when negotiation with Management SDK (#1691) When clients negotiatie with Management SDK and connect to SignalR server, IUserIdProvider might not work as the user ID is set directly in the Management SDK. To make HubConnectionContext.UserIdentifier have the valid value in this case, we should set it before the server accesses it. HubLifetimeManager{THub}.OnConnectedAsync(HubConnectionContext) is the only chance we can set the value. However, we cannot access the Constants.ClaimType.UserId as ASRS system claims are trimmed there. HubConnectionContext.Features is the place where we can store the user Id. The following code is the injection point. https://github.com/dotnet/aspnetcore/blob/v6.0.9/src/SignalR/server/Core/src/HubConnectionHandler.cs#L132-L141 Fixes #1679 * Add ClientInvocationManager (#1684) * add ClientInvocationManager * update CallerClientResultsManager (#1697) add `TryCompleteResult` for `ErrorCompletionMessage` * Implement close on client authentication expiration (#1699) * Add spec for client-invocation. (#1701) * Add spec for client-invocation. * minor update direction for ErrorCompletionMessage * Add client Invocation implementation and UTs (#1687) * Add client Invocation implementation and UTs * [ClientInvocation] Fix cleanup in caller case. (#1702) * Fix cleanup in caller case. * fix UT. * Update src/Microsoft.Azure.SignalR.Common/ClientInvocation/IClientInvocationManager.cs Co-authored-by: Liangying.Wei <lianwei@microsoft.com> Co-authored-by: Liangying.Wei <lianwei@microsoft.com> * Add ClientResultSample (#1703) * Add ClientResultSample * Move file * minor update. * minor update README. * show server/service ex.message * Add Broadcast method and update README * Fix proxy not applied to serverless transient mode (#1708) Fix #1700 * silent IDE0090 check (#1709) * reduce retry interval when auth failed (#1451) * Clean up dependencies. (#1711) * Update dep to GA version. * clean up dependencies * clean management. * fix test dep. Co-authored-by: Liangying.Wei <lianwei@microsoft.com> Co-authored-by: Kevin Guo <105208143+kevinguo-ed@users.noreply.github.com> Co-authored-by: yzt <zityang@microsoft.com> Co-authored-by: Eric Xing <87063252+xingsy97@users.noreply.github.com> Co-authored-by: Terence Fan <stdrickforce@gmail.com>
can you help with below questions, I am looking for some guidance
Originally posted by @Chays21 in #1640 (comment)
The text was updated successfully, but these errors were encountered: