admin管理员组文章数量:1183729
I've got a Blazor InteractiveAuto project where the client communicates to the server through GRPC. In the Blazor client, I have a GRPC client. In the ASP.Net server, I have a GRPC server and client. Under server-side rendering, the server is communicating with itself through GRPC.
Upon adding OIDC and cookie authentication, I noticed that the user authentication works as expected with client-side rendering, but isn't passed along during server-side rendering. I tried to create a dummy GRPC client that directly calls the ServiceBase methods, but HttpContextServerCallContext is internal, so I don't see how I can construct the ServerCallContext parameter.
Do I have to change my entire authentication scheme or is there a better way to make GRPC work with InteractiveAuto projects with user authentication? I'm hoping that there is some straight-forward way with AddCallCredentials that I'm not seeing.
本文标签:
版权声明:本文标题:In a Blazor InteractiveAuto project with GPRC, how can the server communicate with itself with user authentication? - Stack Over 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738277163a2072545.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论