oauth-2.0 - 如何从 IdentityServer4 上的 DeviceCodes 表中检索/解密 DeviceCode
问题描述
我使用 IdentityServer 4 - Device Flow 作为我的身份验证机制。
所有身份验证工作正常。
我现在正在尝试在身份服务器激活控制器上“注册”设备,您可以在其中为设备添加名称。
有谁知道如何从 DeviceCodes 表中检索/解密 DeviceCode?
我想稍后将此 ID 用于 SignalR 系统。
解决方案
我最终创建了一个自定义 IDeviceFlowCodeService 并以这种方式实现它。
推荐阅读
- git - Git 塔警告标志
- java - SQLData 使用接口读取映射对象
- android - Android:JSON 对象 getString
- reactjs - 异步函数的 useState Hook 并发问题
- javascript - 尝试实时搜索分页表的错误 JavaScrit 代码
- r - 如何使用 difftime 列初始化 tibble
- firebase - Firestore - 每个帐户有多个集合或子集合
- python - 我需要让基于时间的记分牌更好地工作
- javascript - 为什么 JavaScript RegExp 在 Firefox 中不起作用?
- database - 仅比较时间戳列 postgresql 中的小时数