首页 > 解决方案 > 如何从 IdentityServer4 上的 DeviceCodes 表中检索/解密 DeviceCode

问题描述

我使用 IdentityServer 4 - Device Flow 作为我的身份验证机制。

所有身份验证工作正常。

我现在正在尝试在身份服务器激活控制器上“注册”设备,您可以在其中为设备添加名称。

有谁知道如何从 DeviceCodes 表中检索/解密 DeviceCode?

我想稍后将此 ID 用于 SignalR 系统。

标签: oauth-2.0identityserver4openid-connect

解决方案


我最终创建了一个自定义 IDeviceFlowCodeService 并以这种方式实现它。


推荐阅读