asp.net-core – 是否可以将NoSQL用于Identity Server 4?
发布时间:2020-12-16 04:32:55 所属栏目:asp.Net 来源:网络整理
导读:我正在尝试将NoSql数据存储集成到诸如Cosmos DB之类的Identity Server 4中.我想知道是否有人做过类似的事情和/或是否有可能. 解决方法 当然,可以将NoSQL数据库用于IdentityServer4.为什么不? 这是MongoDB的一个例子 “initial plumbing” in ConfigureServi
我正在尝试将NoSql数据存储集成到诸如Cosmos DB之类的Identity Server 4中.我想知道是否有人做过类似的事情和/或是否有可能.
解决方法
当然,可以将NoSQL数据库用于IdentityServer4.为什么不?
这是MongoDB的一个例子
public void ConfigureServices(IServiceCollection services) { ... // --- configure identity server with MONGO Repository for stores,keys,clients and scopes --- services.AddIdentityServer() .AddTemporarySigningCredential() .AddMongoRepository() .AddClients() .AddIdentityApiResources() .AddPersistedGrants() .AddTestUsers(Config.GetUsers()); ... } 还有另一个github项目cloudscribe,ASP.NET核心多租户Web应用程序基础,包含对站点,用户,角色,声明等的管理.该项目正在为IdentityServer实现PostgreSQL(ORDBMS)和MySql.在这个项目中,您可以了解如何实现允许在数据库之间切换的系统. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ASP.NET Core的Kestrel服务器
- asp.net-mvc – 在Razor web helper中使用html助手
- 计算ASP.net/c#中的会话数
- asp.net – ELMAH日志的独立查看器应用程序
- 在ASP.NET中将HTML转换为PDF时保持CSS样式
- .NET中的共享配置文件
- asp.net-mvc – Autofac(MVC EF SignalR Hangfire)生命周期
- asp.net-mvc – .OTF字体未部署到Azure
- asp.net – 有没有办法以编程方式设置Elmah中的应用程序名称
- asp.net-mvc-4 – 如何在Kendo Grid的每一行中添加自定义按
推荐文章
站长推荐
- asp.net-mvc – Redirect和RedirectToAction之间
- ASP.NET TreeView:Checked更改后的PostBack?
- asp.net-core – Razor模板中的特殊字符未正确编
- asp.net-mvc – ASP.Net MVC自定义模型绑定说明
- asp.net-mvc – 使用存储库模式来支持多个提供程
- asp.net – 安装MvcScaffolding包时的NuGet执行策
- asp.net-web-api – ExtensionlessUrlHandler和“
- [WCF]缺少一行代码引发的血案
- 在剃刀mvc 4 rc清空第一行
- asp.net – 这个LINQ statment是否容易受SQL注入
热点阅读