Skip to content
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

SignalR Support for BFF #762

Closed
joelcoxokc opened this issue Jul 7, 2023 · 6 comments
Closed

SignalR Support for BFF #762

joelcoxokc opened this issue Jul 7, 2023 · 6 comments

Comments

@joelcoxokc
Copy link

Which version of Duende BFF are you using?
Duende.IdentityServer: Version="6.2.1"
Duende.BFF: Version=2.0.0

Which version of .NET are you using?
net6

Describe the bug

We are using duendes BFF.
We have several processes that require real-time updates. However, the BFF implementation will not allow us to map signalR hub endpoints.

I have found some partial solutions with no additional context, like this one #551
Which I have been unsuccessful at implementing.

Do you all have any signalR support coming in the future?

Expected behavior

I expect to simply use SignalR's MapHub method to map endpoints to our API.
I also expect that SingalR requests will not move the sliding token on requests...
Something like this would be nice

endpoints
            .MapRemoteBffHub("local/endpoint", "api/endpoint")
            .RequireAccessToken(Duende.Bff.TokenType.User);

Without signalR support we are having to do some very strange workaround that is not scalable... using redis caches and building controllers on our BFF that subscribe to redis..
And our client side angular code is having to poll every 5 seconds... Which is not ideal for modern SPAs to be this chatty.

@joelcoxokc joelcoxokc added the BFF label Jul 7, 2023
@josephdecock
Copy link
Member

Hi @joelcoxokc - we have at least one issue on our backlog to create more samples of signalr and the bff. We don't have a committed date on when we'd release that, but hearing from folks like you definitely helps us as we prioritize our backlog. Sorry we can't give you a firmer commitment on this one.

@gryffs
Copy link

gryffs commented Jul 10, 2023

Would love to see this as well. Thank you!

@josephdecock
Copy link
Member

Thanks for the feedback everyone. I'm closing this issue for now since we have issues on our backlog to consider this in the future.

@joelcoxokc
Copy link
Author

Any updates on this @josephdecock

@AndersAbel AndersAbel reopened this Mar 19, 2024
@josephdecock
Copy link
Member

We're gearing up our work on the next major release of the BFF this month. One of the big pieces that we want to address is how to secure blazor applications, especially when they use signalr based circuits, and hopefully that will move this forward.

@AndersAbel
Copy link
Member

Closing this issue as this is on our roadmap for the BFF. The high level issue that we are tracking this in is DuendeSoftware/BFF#190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants