服务器端的Blazor:使用MongoDB进行身份管理 [英] Blazor on server-side: using MongoDB for Identity management
问题描述
VS 2019中的Asp.Net Core Blazor模板可以创建一个服务器端应用程序,该应用程序将使用Microsoft SQL Server管理帐户和身份管理声明.
我想使用 MongoDB 来进行帐户和理赔管理.这样,我想使Blazor能够使用装饰器和AuthorizeView来允许对特定标识或声明的特定访问.
我已经搭建了Identity构造,但是我对如何继续感到困惑.
有一个名为 AspNetCore.Identity.Mongo 的开源身份提供程序.
我可以在blazor中使用该提供程序吗?如果可以,如何将该提供程序集成到我的Blazor项目中?
github上是否有任何项目将展示Blazor中针对自定义身份提供者的必要调整?
我正在做类似的事情. Blazor本质上使用Dotnet核心,因此解决方案可以实现.
相关的Nuget软件包为 https://github.com/matteofabbri/AspNetCore.Identity.Mongo/blob/master/README.md 对于3.0,请使用6系列的Nuget软件包(最新的6.7)
这是我发现的一个github示例,它使用momgoDb作为Identity的数据库. https://github.com/AlejandroRuiz/CosmosDBTutorial
Git Hub是本教程的实现. 在此处输入链接描述 >
The Asp.Net Core Blazor template in VS 2019 can create a server-side app that will use the Microsoft SQL Server to manage the accounts and claims for identity management.
I would like to use MongoDB instead for account and claims management. This way I want to enable Blazor to use decorators and AuthorizeView to allow specific access for specific identities or claims.
I have scaffolded the Identity construct but I am confused how to proceed.
There is an open source Identity provider available called AspNetCore.Identity.Mongo.
Can I use this provider with blazor and if so how can I integrate this provider into my Blazor project?
Is there any project on github that will demonstrate the necessary adjustments in Blazor for custom identity providers?
I am looking at doing Similar. Blazor essentially uses Dotnet core, So solutions relevent to that can be implemented.
The relevant Nugetpackage is https://github.com/matteofabbri/AspNetCore.Identity.Mongo/blob/master/README.md For 3.0 use Nuget packages of the 6 series ( latest 6.7 )
Here is a github Example that I found which uses momgoDb as the database for Identity. https://github.com/AlejandroRuiz/CosmosDBTutorial
The Git Hub is the implementation of this Tutorial. enter link description here
这篇关于服务器端的Blazor:使用MongoDB进行身份管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!