将本地用户数据库与Identity Server 4连接 [英] Connecting local users database with Identity Server 4
问题描述
->我想使用身份服务器4作为某些客户端的中央令牌生成器.
->这是我的问题,我已经在docs的帮助下实现了身份服务器4,在docs中IS4正在使用自己的数据库供用户登录.
->有人可以解释连接到我自己的用户数据库以进行登录和令牌生成的方法. (我正在使用IS4和.net core的最新版本.)
-> I want to use Identity server 4 as a central token generator for some clients.
-> Here my problem is I have implemented Identity server 4 with the help of docs, in the docs the IS4 is using its own database for users to login.
-> Can someone explain the way to connect to my own users database for login and token generation. (I'm using the latest version of IS4 and .net core).
先谢谢您了:)
注意: 我已经尝试了docs的所有功能 -> http://docs.identityserver.io/en/latest/quickstarts/8_aspnet_identity.html
Note: I have tried all the things from docs -> http://docs.identityserver.io/en/latest/quickstarts/8_aspnet_identity.html
推荐答案
AccountController
是您适应自己的需求的起点.
The AccountController
is a starting point for you to adapt to suit your own requirements.
此模板使用ASP.NET Core身份进行用户管理.
This template uses ASP.NET Core Identity for user management.
您的选择是
- Migrate your users to use the Identity's table structure
- Provide a custom storage provider to ASP.Net Identity that uses your existing user tables (Custom Storage Provider)
- Implement your own user management\storage service and change
AccountController
to use it
这篇关于将本地用户数据库与Identity Server 4连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!