标签列表
Identity Server 4支持多个用户存储库
asp.net-mvc
.net-core
identity
identityserver4
.net-framework-version
5
5
我刚开始着手集成Identity Server 4。我正在寻找一些解决方案,以便为三个不同的应用程序/客户端拥有三个不同的用户存储库。这是否可能实现?
-
Irfan Jamil
1
个回答
3
3
您可以在登陆页面访问当前客户端的ID。请查看快速启动UI。
https://github.com/IdentityServer/IdentityServer4.Quickstart.UI
-
leastprivilege
1
1
那么,您的意思是在“IResourceOwnerPasswordValidator”中的validateAsync方法中 public Task ValidateAsync(ResourceOwnerPasswordValidationContext context) { if (context.Request.Client.ClientId == "Client1") { // 从存储1验证 } else if (context.Request.Client.ClientId == "Client1") { // 从第二个存储验证 } else { // 从第三个存储验证 } } 我可以这样做吗?
- Irfan Jamil
回答链接
网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接
相关问题
3
Identity Server 4 和 ASP.NET Core Identity
3
Identity Server 4 和 Identity Server 5 的区别
5
Identity Server 4 - 当用户空闲时注销用户
3
使用数据库替代内存存储Identity Server 4
11
Identity Server 4故障排除
3
Identity Server 4 - 如何定义支持的授权类型等
3
角色 - Identity Server 4
3
Identity Server 4 和用户权限
9
安装Identity Server 4反向代理
3
Identity Server 4 用户管理API