[英]OIDC/OAuth SSO from wpf desktop app using web browser
We have our custom IDP which implements the OIDC/OAuth2 standards and many of our browser based SPA apps use it for authn/authz (With SSO).我们有实现 OIDC/OAuth2 标准的自定义 IDP,我们的许多基于浏览器的 SPA 应用程序将其用于 authn/authz(使用 SSO)。 We also have some of our apps which are WPF desktop based.我们还有一些基于 WPF 桌面的应用程序。 Now, our requirement is to implement similar OIDC/OAuth SSO from desktop app by launching a browser from the desktop application and then once the sign in is complete come back to the desktop app (SSO).现在,我们的要求是通过从桌面应用程序启动浏览器来从桌面应用程序实现类似的 OIDC/OAuth SSO,然后在登录完成后返回桌面应用程序 (SSO)。
This is something very similar to how Docker desktop works which launches a browser for sign-in and then redirects back to the desktop application.这与 Docker 桌面的工作方式非常相似,它启动浏览器进行登录,然后重定向回桌面应用程序。 Anybody can suggest what is the right way to implement this and any reference to sample implementation would be greatly appreciated.任何人都可以建议什么是正确的方法来实现这一点,任何对示例实现的参考将不胜感激。
Thanks谢谢
The system browser is used to login, according to RFC8252 .系统浏览器用于登录,根据RFC8252 。 I believe Docker desktop uses a private URI schene to receive the OAuth response.我相信 Docker 桌面使用私有 URI 模式来接收 OAuth 响应。
See these resources.请参阅这些资源。 My app is coded in Javascript but you should be able to translate the concepts:我的应用程序是用 Javascript 编码的,但您应该能够翻译这些概念:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.