是否可以通过IdentityServer实现动态客户端注册? [英] Is there a way to achieve Dynamic Client Registration with IdentityServer?

查看:93
本文介绍了是否可以通过IdentityServer实现动态客户端注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们公司有一个SSO应用程序,我打算用IdentityServer4或3替换大部分身份验证管道.我要替换的版本具有自己的动态客户端注册自定义实现(不符合规范)和用户界面来管理它.

Our company has an SSO app that I'm looking to replace a significant chunk of the authentication pipeline with IdentityServer4 or 3. The version I'm replacing has its own custom implementation of Dynamic Client Registration (not to spec) and a UI to manage it.

有一个数字 整个IdentityServer项目中的Github 问题似乎还没有实现,希望使用DCR的人应该编写自己的规范实现作为扩展.

There are a number of Github issues across the IdentityServer project discussing the issue and the resolution appears to be that it hasn't been implemented and someone looking to use DCR should write their own implementation of the spec as an extension.

我是否纠正当前无法实现的问题,最好在Github上为IdentityServer创建自己的DCR扩展?还是我错过了Google-fu的帮助而有人已经写了扩展程序?

Am I correct that this is currently not possible and I would be better served creating my own DCR extension on Github for IdentityServer? Or have I missed something with my Google-fu and someone's already written an extension?

请注意,如果有必要,我很乐意实现自己的实现.

Note I'm happy to implement my own if it's necessary.

推荐答案

IdentityServer 4不提供动态客户端注册的任何实现,因为他们认为动态客户端注册不在项目范围内.但是,您可以实现自己的中间件或MVC控制器.

IdentityServer 4 does not provide any implementation of dynamic client registration as they consider it out of scope for the project. However you can implement your own, either as a middleware or as a MVC controller.

您需要一个对 Clients 表使用 ConfigurationDbContext 的终结点.

You need an endpoint that uses ConfigurationDbContext to the Clients table.

此源代码在GitHub上存在问题. https://github.com/IdentityServer/IdentityServer4/issues/1248

Source code for this is a issue on GitHub. https://github.com/IdentityServer/IdentityServer4/issues/1248

这篇关于是否可以通过IdentityServer实现动态客户端注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆