具有多个(自定义)用户存储的 Identityserver4
Identityserver4 with multiple (custom) user stores
我们正在设计一个绿地多租户(web/mobile)系统,并计划使用IdentityServer4。
我代替了 IdentityServer4 中的第一个 class 多租户支持,我们正在考虑为每个租户提供单独的用户存储。在试图弄清楚如何去做时,我查看了 https://github.com/IdentityServer/IdentityServer4.AspNetIdentity
的实现
它似乎正在注册 IResourceOwnerPasswordValidator
的实现,只有在使用 'Resource owner password' 授权类型时才会调用它。
应实现和注册哪些接口以支持 custom/multiple 其他(例如隐式)授权类型中的用户存储?
--
雷神 A. 约翰森
交互式登录逻辑进入 "account controller"。您可以使用 acr_values 参数(或某些自定义参数)指示来自客户端的租户 ID,然后通过 IIdentityServerInteractionService.GetAuthorizationContext
方法在控制器中检索它。
我们正在设计一个绿地多租户(web/mobile)系统,并计划使用IdentityServer4。
我代替了 IdentityServer4 中的第一个 class 多租户支持,我们正在考虑为每个租户提供单独的用户存储。在试图弄清楚如何去做时,我查看了 https://github.com/IdentityServer/IdentityServer4.AspNetIdentity
的实现它似乎正在注册 IResourceOwnerPasswordValidator
的实现,只有在使用 'Resource owner password' 授权类型时才会调用它。
应实现和注册哪些接口以支持 custom/multiple 其他(例如隐式)授权类型中的用户存储?
-- 雷神 A. 约翰森
交互式登录逻辑进入 "account controller"。您可以使用 acr_values 参数(或某些自定义参数)指示来自客户端的租户 ID,然后通过 IIdentityServerInteractionService.GetAuthorizationContext
方法在控制器中检索它。