Authorization policies in blazor server side

流过昼夜 提交于 2019-12-02 14:58:26

问题


I'm trying to find docs on the blazor server side equivalent of asp.net core authorization policies, but can't seem to find anything.

Can someone tell me what the mechanism is for authorization in blazor server side?


回答1:


No authentication and authorization for Blazor exist right now. The Asp.Net team is currently working on it... You may read here the whole story: https://github.com/aspnet/AspNetCore/issues/4048

Hope this helps...




回答2:


The latest preview -6 of .NET Core 3 has introduced authentication and authorization for server-side Blazor. Refer to https://devblogs.microsoft.com/aspnet/asp-net-core-and-blazor-updates-in-net-core-3-0-preview-6/ I have also created an application which implements Google authentication in a Blazor app. You can check it at https://github.com/AnkitSharma-007/Google-Authentication-with-server-side-Blazor



来源:https://stackoverflow.com/questions/56161931/authorization-policies-in-blazor-server-side

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!