OpenID Connect集成 [英] OpenID Connect Integration
问题描述
ASP.NET样板与 ASP.NET Zero 不同,它不包含对第三方身份解决方案的OpenID Connect支持.
ASP.NET Boilerplate unlike ASP.NET Zero does not contain the OpenID Connect support to a third-party Identity Solution.
An older post on the ASP.NET Boilerplate forum (Support for Open ID and JWT?) discusses this topic but does not provide any code example on how to approach this. Has anyone tried this already?
也可以将此功能也添加到ASP.NET Boilerplate中...
It would be fine if this feature could be added to ASP.NET Boilerplate as well...
推荐答案
如果要使应用程序openid连接客户端(而不是服务器),则可以使用Microsoft相关的nuget软件包.
If you want to make your application openid connect client (not server) you can just use Microsoft's related nuget package.
如果您的应用程序是ASP.NET Core,则程序包名称为 Microsoft .AspNetCore.Authentication.OpenIdConnect
If your application is ASP.NET Core then the package name is Microsoft.AspNetCore.Authentication.OpenIdConnect
但是,如果您想成为一个开放ID连接服务器,那就另当别论了.然后,您可以使用Identity Server为例.
But if you want to be an open id connect server, it's a different thing. You can then use Identity Server for example.
这篇关于OpenID Connect集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!