Signalr JWT身份验证失败
我正在尝试通过创建一个简单的消息传递应用来学习SignalR。这个想法是我进行了公开聊天和私人聊天,私人聊天需要具有JWT身份验证。
该项目具有呈现前端的大型服务器端,并且是一个静止的API作为后端。
据我了解问题,后端有回收信息后,它失败了。在第一个日志中,它在获得响应时会失败。
jwt设置:
和chat.razor
HUB:
I'm trying to learn SignalR by creating a simple messaging app. The idea is that i have a public chat and private chat, and the private chat needs to have JWT authentication.
This project have a blazor server side rendered frontend and a RESTful api as backend.
As i understands the problem, it fails after backend have recvived information. In the first log its fails when getting response.
JWT setup:
and Chat.Razor
Hub:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论